don't try to use null gamePtr. Happens when relay moves arrive for a

game whose dict has been deleted.
This commit is contained in:
Eric House 2012-11-29 06:20:45 -08:00
parent bffb231d13
commit 9f5a64ee50

View file

@ -708,7 +708,7 @@ public class GameUtils {
CurGameInfo gi = new CurGameInfo( context ); CurGameInfo gi = new CurGameInfo( context );
FeedUtilsImpl feedImpl = new FeedUtilsImpl( context, rowid ); FeedUtilsImpl feedImpl = new FeedUtilsImpl( context, rowid );
int gamePtr = loadMakeGame( context, gi, feedImpl, sink, lock ); int gamePtr = loadMakeGame( context, gi, feedImpl, sink, lock );
if ( 0 != gamePtr ) {
XwJNI.comms_resendAll( gamePtr, false, false ); XwJNI.comms_resendAll( gamePtr, false, false );
if ( null != msgs ) { if ( null != msgs ) {
@ -729,6 +729,7 @@ public class GameUtils {
draw = true; draw = true;
DBUtils.setMsgFlags( rowid, flags ); DBUtils.setMsgFlags( rowid, flags );
} }
}
lock.unlock(); lock.unlock();
} }
return draw; return draw;