Last active
January 4, 2019 17:41
-
-
Save MarcBruins/97c61543ffdf6a470a795307b99245ff to your computer and use it in GitHub Desktop.
Possible dereference of a null reference sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<SearchCodeResult> Search(SearchCodeRequest search) | |
{ | |
foreach (var repo in search.Repos) | |
{ | |
//do search stuff | |
} | |
} | |
class SearchCodeRequest{ | |
public IList<string>? Repos { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment