[gatein-commits] gatein SVN: r4603 - portal/branches/branch-GTNPORTAL-1537/webui/framework/src/main/java/org/exoplatform/webui/core/lifecycle.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Oct 8 06:21:41 EDT 2010
Author: kien_nguyen
Date: 2010-10-08 06:21:41 -0400 (Fri, 08 Oct 2010)
New Revision: 4603
Modified:
portal/branches/branch-GTNPORTAL-1537/webui/framework/src/main/java/org/exoplatform/webui/core/lifecycle/WebuiBindingContext.java
Log:
GTNPORTAL-1516 Check null to catch exception of WebuiBindingContext.appRes
Modified: portal/branches/branch-GTNPORTAL-1537/webui/framework/src/main/java/org/exoplatform/webui/core/lifecycle/WebuiBindingContext.java
===================================================================
--- portal/branches/branch-GTNPORTAL-1537/webui/framework/src/main/java/org/exoplatform/webui/core/lifecycle/WebuiBindingContext.java 2010-10-08 10:03:04 UTC (rev 4602)
+++ portal/branches/branch-GTNPORTAL-1537/webui/framework/src/main/java/org/exoplatform/webui/core/lifecycle/WebuiBindingContext.java 2010-10-08 10:21:41 UTC (rev 4603)
@@ -89,7 +89,7 @@
public String appRes(String mesgKey) throws Exception
{
- String value;
+ String value = "";
try
{
ResourceBundle res = rcontext_.getApplicationResourceBundle();
@@ -99,7 +99,8 @@
{
if (PropertyManager.isDevelopping())
log.warn("Can not find resource bundle for key : " + mesgKey);
- value = mesgKey.substring(mesgKey.lastIndexOf('.') + 1);
+ if(mesgKey != null)
+ value = mesgKey.substring(mesgKey.lastIndexOf('.') + 1);
}
return value;
}
More information about the gatein-commits
mailing list