Merge pull request #324 from ScottIsAFool/bug/323
Fix ArgumentNullException
This commit is contained in:
commit
63370f9a16
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue