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:
Eric House 2020-09-06 21:45:15 -07:00
parent 29328e6412
commit 592554bdcb

View file

@ -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();