# HG changeset patch # User IBBoard # Date 1297630992 0 # Node ID e1438fb9024ceeaa7ba9f386c1afa68422a2c8b3 # Parent afa7a5dd0eea22e2bc0b0dbc0d6a3e58b40f4824 Re #99: Define "points" values in GameSystem * Update to make sure that we don't return null diff -r afa7a5dd0eea -r e1438fb9024c api/Objects/GameSystem.cs --- a/api/Objects/GameSystem.cs Sun Feb 13 20:55:13 2011 +0000 +++ b/api/Objects/GameSystem.cs Sun Feb 13 21:03:12 2011 +0000 @@ -324,12 +324,14 @@ public string GetPointsAbbrev(double pointTemp) { - return (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural); + string str = (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural); + return (str == null ? "" : str); } public string GetPointsName(double pointTemp) { - return (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural); + string str = (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural); + return (str == null ? "" : str); } } }