mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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 );
|
||||
Fragment frag = getSupportFragmentManager()
|
||||
.findFragmentById( child.getId() );
|
||||
boolean handled = ((XWFragment)frag).getDelegate()
|
||||
.handleBackPressed();
|
||||
boolean handled = null != frag
|
||||
&&((XWFragment)frag).getDelegate().handleBackPressed();
|
||||
return handled;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue