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:
Michael Bayne
2008-12-10 20:53:43 +00:00
parent fe323675e8
commit a8421616f9
@@ -165,6 +165,7 @@ public class StatRepository extends DepotRepository
value = (map == null) ? null : map.get(code);
if (value == null) {
log.warning("Missing reverse maping", "type", type, "code", code);
value = "__UNKNOWN:" + code + "__"; // we don't want to return null
}
}
return value;