mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Guard against a potential null string
This commit is contained in:
@@ -27,7 +27,12 @@ namespace Octokit
|
||||
/// </summary>
|
||||
public string Content
|
||||
{
|
||||
get { return EncodedContent.FromBase64String(); }
|
||||
get
|
||||
{
|
||||
return EncodedContent != null
|
||||
? EncodedContent.FromBase64String()
|
||||
: null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user