Author: lektran
Date: Tue Jan 1 06:08:07 2008
New Revision: 607848
URL:
http://svn.apache.org/viewvc?rev=607848&view=revLog:
Fixed a problem when a property isn't found in the bundle, the bundle throws an exception which wasn't being caught. Reported by Chris Lombardi in the user list
Modified:
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java
Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java?rev=607848&r1=607847&r2=607848&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java Tue Jan 1 06:08:07 2008
@@ -381,7 +381,12 @@
if (bundle == null) return "";
- String value = (String) bundle.getString(name);
+ String value = null;
+ try {
+ value = (String)bundle.getString(name);
+ } catch (Exception e) {
+ Debug.log(e.getMessage(), module);
+ }
return value == null ? "" : value.trim();
}