It's potentially poor form to be passing null in as one of the

things to stuff into a translated string, but I've seen it happen
in internalish yohoho messages, so let's not blow up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5339 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2008-08-25 17:21:53 +00:00
parent aaa403052e
commit 18a69ba281
@@ -333,7 +333,7 @@ public class MessageBundle
*/
protected String getSuffix (Object[] args)
{
if (args.length > 0) {
if (args.length > 0 && args[0] != null) {
try {
int count = (args[0] instanceof Integer) ? (Integer)args[0] :
Integer.parseInt(args[0].toString());