Fix NPE in LoadFEN.onConfigurationChanged()

This commit is contained in:
Peter Osterlund 2020-02-13 20:28:20 +01:00
parent f912806c70
commit 421aeb8a30

View File

@ -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);