Strings have length, Zell.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6183 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -74,7 +74,8 @@ public abstract class ConfigFieldEditor
|
||||
return null;
|
||||
}
|
||||
String newValStr = newValue.toString();
|
||||
if ((newValStr.size() == 0 && _field.valStr == null) ||newValStr.equals(_field.valStr)) {
|
||||
if ((newValStr.length() == 0 && _field.valStr == null)
|
||||
|| newValStr.equals(_field.valStr)) {
|
||||
return null;
|
||||
}
|
||||
return new ConfigField(_field.name, _field.type, newValStr);
|
||||
|
||||
Reference in New Issue
Block a user