Merge pull request #324 from ScottIsAFool/bug/323

Fix ArgumentNullException
This commit is contained in:
Scott Lovegrove 2016-01-21 10:22:18 +00:00
commit 63370f9a16
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ namespace OpenLiveWriter.BlogClient.Clients
getPagesRequest.MaxResults = maxPages;
var pageList = getPagesRequest.Execute();
return pageList.Items.Select(p => ConvertToBlogPost(p)).ToArray();
return pageList.Items?.Select(p => ConvertToBlogPost(p)).ToArray() ?? new BlogPost[0];
}
public string NewPage(string blogId, BlogPost page, bool publish, out string etag, out XmlDocument remotePost)