Author: hansbak
Date: Wed Aug 29 19:33:16 2007
New Revision: 571020
URL:
http://svn.apache.org/viewvc?rev=571020&view=revLog:
avoid having NPE in verbose message
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java?rev=571020&r1=571019&r2=571020&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java Wed Aug 29 19:33:16 2007
@@ -66,12 +66,12 @@
private static Double getAmount(Map args, String key) {
if (args.containsKey(key)) {
Object o = args.get(key);
- if (Debug.verboseOn()) Debug.logVerbose("Amount Object : " + o.getClass().getName(), module);
// handle nulls better
if (o == null) {
o = 0.00;
}
+ if (Debug.verboseOn()) Debug.logVerbose("Amount Object : " + o.getClass().getName(), module);
if (o instanceof NumberModel) {
NumberModel s = (NumberModel) o;