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:
Eric House 2018-07-19 06:29:03 -07:00
parent 67d09a79b5
commit e1fec99860

View file

@ -1183,7 +1183,9 @@ public class GameUtils {
boolean informNow )
{
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;
GamePtr gamePtr = loadMakeGame( context, lock );