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:
@@ -333,7 +333,7 @@ public class MessageBundle
|
|||||||
*/
|
*/
|
||||||
protected String getSuffix (Object[] args)
|
protected String getSuffix (Object[] args)
|
||||||
{
|
{
|
||||||
if (args.length > 0) {
|
if (args.length > 0 && args[0] != null) {
|
||||||
try {
|
try {
|
||||||
int count = (args[0] instanceof Integer) ? (Integer)args[0] :
|
int count = (args[0] instanceof Integer) ? (Integer)args[0] :
|
||||||
Integer.parseInt(args[0].toString());
|
Integer.parseInt(args[0].toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user