From b79685f194af8e7c8666dc16a24c330efb794021 Mon Sep 17 00:00:00 2001 From: uykek Date: Sun, 26 Jul 2020 17:13:02 +0200 Subject: [PATCH] Fix bug that caused a NullPointerException in the GameActivity when importing a sudoku --- .../java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java index 2316cda..4532909 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java @@ -140,7 +140,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig QQWing difficultyCheck; GameInfoContainer container = new GameInfoContainer(0, GameDifficulty.Unspecified, GameType.Unspecified, new int [boardSize], new int [boardSize], new boolean [boardSize][sectionSize]); - container.setCustom(extras.getBoolean("isCustom", false)); + container.setCustom(extras != null && extras.getBoolean("isCustom", false)); try { container.parseGameType("Default_" + sectionSize + "x" + sectionSize);