Use a library method to check equality with possible nulls.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@78 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-09-26 02:38:19 +00:00
parent 4364576283
commit 2f8a14bdb8
2 changed files with 4 additions and 4 deletions
@@ -23,6 +23,7 @@ package com.threerings.parlor.client {
import com.threerings.util.ArrayUtil;
import com.threerings.util.ObserverList;
import com.threerings.util.Util;
import com.threerings.presents.client.BasicDirector;
import com.threerings.presents.client.Client;
@@ -314,8 +315,7 @@ public class TableDirector extends BasicDirector
}
// if nothing changed, bail now
if (oldTable == _ourTable ||
(oldTable != null && oldTable.equals(_ourTable))) {
if (Util.equals(oldTable, _ourTable)) {
return;
}
@@ -22,6 +22,7 @@
package com.threerings.parlor.client;
import com.samskivert.util.ListUtil;
import com.samskivert.util.ObjectUtil;
import com.samskivert.util.ObserverList;
import com.threerings.presents.client.BasicDirector;
@@ -309,8 +310,7 @@ public class TableDirector extends BasicDirector
}
// if nothing changed, bail now
if (oldTable == _ourTable ||
(oldTable != null && oldTable.equals(_ourTable))) {
if (ObjectUtil.equals(oldTable, _ourTable)) {
return;
}