Author: jleroux
Date: Wed Oct 18 23:01:52 2006
New Revision: 465505
URL:
http://svn.apache.org/viewvc?view=rev&rev=465505Log:
Possiblz NPE fix, thanks to Jacopo.
Modified:
incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
Modified: incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?view=diff&rev=465505&r1=465504&r2=465505==============================================================================
--- incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Wed Oct 18 23:01:52 2006
@@ -1393,7 +1393,7 @@
while (recIter.hasNext()) {
GenericValue rec = (GenericValue) recIter.next();
Double rejected = rec.getDouble("quantityRejected");
- if (rejected.doubleValue() > 0) {
+ if (rejected != null && rejected.doubleValue() > 0) {
return true;
}
}