mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +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
|
@Override
|
||||||
public void onConfigurationChanged(Configuration newConfig) {
|
public void onConfigurationChanged(Configuration newConfig) {
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
if (binding.loadfenChessboard != null) {
|
if (binding != null && binding.loadfenChessboard != null) {
|
||||||
Position pos = binding.loadfenChessboard.pos;
|
Position pos = binding.loadfenChessboard.pos;
|
||||||
showList();
|
showList();
|
||||||
binding.loadfenChessboard.setPosition(pos);
|
binding.loadfenChessboard.setPosition(pos);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user