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:
Michael Bayne
2008-03-18 23:51:51 +00:00
parent b1e4460f0f
commit ae4435d389
2 changed files with 2 additions and 2 deletions
@@ -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()]);
}
/**