mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
fix NPE
I think I'm in a bad state when this happens, but no point in crashing regardless.
This commit is contained in:
parent
472a173297
commit
dcb4968ed9
1 changed files with 2 additions and 2 deletions
|
@ -184,8 +184,8 @@ public class MainActivity extends XWActivity
|
||||||
View child = m_root.getChildAt( m_root.getChildCount() - 1 );
|
View child = m_root.getChildAt( m_root.getChildCount() - 1 );
|
||||||
Fragment frag = getSupportFragmentManager()
|
Fragment frag = getSupportFragmentManager()
|
||||||
.findFragmentById( child.getId() );
|
.findFragmentById( child.getId() );
|
||||||
boolean handled = ((XWFragment)frag).getDelegate()
|
boolean handled = null != frag
|
||||||
.handleBackPressed();
|
&&((XWFragment)frag).getDelegate().handleBackPressed();
|
||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue