mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 20:48:00 +01:00
fix NPE by inspection
I'm not sure how it happened -- race condition -- but it's harmless to drop the action when it does.
This commit is contained in:
parent
67d09a79b5
commit
e1fec99860
1 changed files with 3 additions and 1 deletions
|
@ -1183,7 +1183,9 @@ public class GameUtils {
|
||||||
boolean informNow )
|
boolean informNow )
|
||||||
{
|
{
|
||||||
GameSummary summary = DBUtils.getSummary( context, lock );
|
GameSummary summary = DBUtils.getSummary( context, lock );
|
||||||
if ( DeviceRole.SERVER_STANDALONE != summary.serverRole ) {
|
if ( null == summary ) {
|
||||||
|
Log.e( TAG, "tellDied(): can't get summary" );
|
||||||
|
} else if ( DeviceRole.SERVER_STANDALONE != summary.serverRole ) {
|
||||||
int gameID = summary.gameID;
|
int gameID = summary.gameID;
|
||||||
|
|
||||||
GamePtr gamePtr = loadMakeGame( context, lock );
|
GamePtr gamePtr = loadMakeGame( context, lock );
|
||||||
|
|
Loading…
Add table
Reference in a new issue