Fix bug that caused a NullPointerException in the GameActivity when importing a sudoku

This commit is contained in:
uykek 2020-07-26 17:13:02 +02:00
parent 13bd2deee1
commit b79685f194

View file

@ -140,7 +140,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
QQWing difficultyCheck; QQWing difficultyCheck;
GameInfoContainer container = new GameInfoContainer(0, GameDifficulty.Unspecified, GameInfoContainer container = new GameInfoContainer(0, GameDifficulty.Unspecified,
GameType.Unspecified, new int [boardSize], new int [boardSize], new boolean [boardSize][sectionSize]); 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 { try {
container.parseGameType("Default_" + sectionSize + "x" + sectionSize); container.parseGameType("Default_" + sectionSize + "x" + sectionSize);