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;
}
Show replies by date