Skip to content

Commit

Permalink
[Newsstand] Handle zero issues in NKLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
olegoid committed Jun 20, 2016
1 parent 17d9015 commit 117288b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Newsstand/Newsstand/SampleCode.cs
Expand Up @@ -99,6 +99,10 @@ public static void Download (UITextView display)
downloading = true;
var library = NKLibrary.SharedLibrary;
var issues = library.Issues;

if (issues.Length == 0)
return;

var issue = issues[1] ; // New York

NKAssetDownload asset = issue.AddAsset (new NSUrlRequest (new NSUrl ("http://xamarin.com/")));
Expand Down

0 comments on commit 117288b

Please sign in to comment.