mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-26 21:47:23 +01:00
Fix NPE in LoadFEN.onConfigurationChanged()
This commit is contained in:
parent
f912806c70
commit
421aeb8a30
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user