diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/activities/LoadFEN.java b/DroidFishApp/src/main/java/org/petero/droidfish/activities/LoadFEN.java index e0e51ab..7557ede 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/activities/LoadFEN.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/activities/LoadFEN.java @@ -258,7 +258,7 @@ public class LoadFEN extends ListActivity { @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); - if (binding.loadfenChessboard != null) { + if (binding != null && binding.loadfenChessboard != null) { Position pos = binding.loadfenChessboard.pos; showList(); binding.loadfenChessboard.setPosition(pos);