Avoid returning null from getCodeString() as it causes problems down the line.
Just return a string that is very unlikely to match an existing code. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@794 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -165,6 +165,7 @@ public class StatRepository extends DepotRepository
|
|||||||
value = (map == null) ? null : map.get(code);
|
value = (map == null) ? null : map.get(code);
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
log.warning("Missing reverse maping", "type", type, "code", code);
|
log.warning("Missing reverse maping", "type", type, "code", code);
|
||||||
|
value = "__UNKNOWN:" + code + "__"; // we don't want to return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
Reference in New Issue
Block a user