Guard against a potential null string

This commit is contained in:
Haacked
2015-01-02 01:01:59 -08:00
parent f3514c0287
commit d1015cf494
+6 -1
View File
@@ -27,7 +27,12 @@ namespace Octokit
/// </summary>
public string Content
{
get { return EncodedContent.FromBase64String(); }
get
{
return EncodedContent != null
? EncodedContent.FromBase64String()
: null;
}
}
/// <summary>