Fix bug that caused a NullPointerException in the GameActivity when importing a sudoku
This commit is contained in:
parent
13bd2deee1
commit
b79685f194
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue