From a8421616f97196d177a650405092248ebf87fbc9 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 10 Dec 2008 20:53:43 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/stats/server/persist/StatRepository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/com/threerings/stats/server/persist/StatRepository.java b/src/java/com/threerings/stats/server/persist/StatRepository.java index c78a0d49..ef421ab3 100644 --- a/src/java/com/threerings/stats/server/persist/StatRepository.java +++ b/src/java/com/threerings/stats/server/persist/StatRepository.java @@ -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;