BugFix: [ 2051473 ] CostCollector NullPointerException

https://sourceforge.net/tracker/index.php?func=detail&aid=2051473&group_id=176962&atid=879332
This commit is contained in:
trifonnt 2008-08-15 09:44:29 +00:00
parent 7172287be8
commit 5d0df7375b
1 changed files with 4 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction
/** /**
* Set Processed. * Set Processed.
* Propergate to Lines/Taxes * Propagate to Lines/Taxes
* @param processed processed * @param processed processed
*/ */
public void setProcessed (boolean processed) public void setProcessed (boolean processed)
@ -697,7 +697,9 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction
log.finest("***** PP_Order_Node_ID = [" +rs1.getInt(2) +"]; status =[" +docStatus + "]"); log.finest("***** PP_Order_Node_ID = [" +rs1.getInt(2) +"]; status =[" +docStatus + "]");
if(docStatus == null || !docStatus.equals(DOCSTATUS_Closed)) if (docStatus == null
|| ( docStatus != null && !docStatus.equals(DOCSTATUS_Closed) )
)
{ {
MPPOrderNode onodenext = new MPPOrderNode(Env.getCtx(),rs1.getInt(2),get_TrxName()); MPPOrderNode onodenext = new MPPOrderNode(Env.getCtx(),rs1.getInt(2),get_TrxName());
onodenext.setDocStatus(DOCSTATUS_Closed); onodenext.setDocStatus(DOCSTATUS_Closed);