Add null check

This commit is contained in:
Alex Sytnyk 2018-04-10 23:58:10 +03:00
parent bcbe8388ac
commit c51f1b74b0

View file

@ -47,6 +47,10 @@ public class WikivoyageArticleContentsFragment extends MenuBottomSheetDialogFrag
}
String contentsJson = args.getString(CONTENTS_JSON_KEY);
if (contentsJson == null) {
return;
}
ContentsContainer contentsContainer = ContentsJsonParser.parseJsonContents(contentsJson);
if (contentsContainer == null) {
return;