mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +01:00
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:
parent
bffb231d13
commit
9f5a64ee50
1 changed files with 17 additions and 16 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue