mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
work around NPE reported on store
Must be a race condition that can cause this. So just fail to open the game as if something more common had gone wrong.
This commit is contained in:
parent
29328e6412
commit
592554bdcb
1 changed files with 3 additions and 2 deletions
|
@ -2322,7 +2322,8 @@ public class BoardDelegate extends DelegateBase
|
|||
setKeepScreenOn();
|
||||
ConnStatusHandler.setHandler( this );
|
||||
}
|
||||
} catch ( GameUtils.NoSuchGameException nsge ) {
|
||||
} catch ( GameUtils.NoSuchGameException | NullPointerException ex ) {
|
||||
Log.ex( TAG, ex );
|
||||
success = false;
|
||||
}
|
||||
|
||||
|
@ -2396,7 +2397,7 @@ public class BoardDelegate extends DelegateBase
|
|||
{
|
||||
if ( null == m_jniThread ) {
|
||||
m_jniThread = m_jniThreadRef.retain();
|
||||
m_gi = m_jniThread.getGI();
|
||||
m_gi = m_jniThread.getGI(); // this can be null, per Play Store report
|
||||
|
||||
m_summary = m_jniThread.getSummary();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue