Author: chris.laprun(a)jboss.com
Date: 2012-02-20 16:38:57 -0500 (Mon, 20 Feb 2012)
New Revision: 8438
Modified:
portal/trunk/component/web/controller/src/main/java/org/exoplatform/web/application/ApplicationMessage.java
Log:
- Fix possible NPE.
Modified:
portal/trunk/component/web/controller/src/main/java/org/exoplatform/web/application/ApplicationMessage.java
===================================================================
---
portal/trunk/component/web/controller/src/main/java/org/exoplatform/web/application/ApplicationMessage.java 2012-02-20
16:39:02 UTC (rev 8437)
+++
portal/trunk/component/web/controller/src/main/java/org/exoplatform/web/application/ApplicationMessage.java 2012-02-20
21:38:57 UTC (rev 8438)
@@ -55,12 +55,16 @@
{
for (int i = 0; i < messageArgs_.length; i++)
{
- String arg = messageArgs_[i].toString();
- if (isArgsLocalized())
+ final Object messageArg = messageArgs_[i];
+ if (messageArg != null)
{
- arg = resolveMessage(arg);
+ String arg = messageArg.toString();
+ if (isArgsLocalized())
+ {
+ arg = resolveMessage(arg);
+ }
+ msg = msg.replace("{" + i + "}", arg);
}
- msg = msg.replace("{" + i + "}", arg);
}
}
Show replies by date