Actually just go back to returning null. That's what the javadocs say.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@574 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -60,7 +60,7 @@ public class SceneMoveHandler extends AbstractSceneMoveHandler
|
||||
if (_version < model.version) {
|
||||
updates = scmgr.getUpdates(_version);
|
||||
}
|
||||
if (updates != null && updates.length > 0) {
|
||||
if (updates != null) {
|
||||
listener.moveSucceededWithUpdates(ploid, config, updates);
|
||||
} else {
|
||||
listener.moveSucceededWithScene(ploid, config, model);
|
||||
|
||||
@@ -78,7 +78,7 @@ public class UpdateList
|
||||
updates.add(update);
|
||||
}
|
||||
}
|
||||
return updates.toArray(new SceneUpdate[updates.size()]);
|
||||
return (updates.size() == 0) ? null : updates.toArray(new SceneUpdate[updates.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user