Fix NPE when purging a party game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@170 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -301,8 +301,10 @@ public class TableManager
|
||||
_tables.remove(table.tableId);
|
||||
|
||||
// clear out all matching entries in the boid map
|
||||
for (int i = 0; i < table.bodyOids.length; i++) {
|
||||
_boidMap.remove(table.bodyOids[i]);
|
||||
if (table.bodyOids != null) {
|
||||
for (int ii = 0; ii < table.bodyOids.length; ii++) {
|
||||
_boidMap.remove(table.bodyOids[ii]);
|
||||
}
|
||||
}
|
||||
|
||||
// remove the mapping by gameOid
|
||||
|
||||
Reference in New Issue
Block a user