Add null check
This commit is contained in:
parent
bcbe8388ac
commit
c51f1b74b0
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue