BugFix: [ 2051473 ] CostCollector NullPointerException
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2051473&group_id=176962
This commit is contained in:
parent
1a5f51e1c7
commit
1686f3a321
|
@ -680,11 +680,14 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction
|
||||||
PreparedStatement pstmt1 = DB.prepareStatement(sql1.toString(), null);
|
PreparedStatement pstmt1 = DB.prepareStatement(sql1.toString(), null);
|
||||||
pstmt1.setInt(1, getPP_Order_ID());
|
pstmt1.setInt(1, getPP_Order_ID());
|
||||||
ResultSet rs1 = pstmt1.executeQuery();
|
ResultSet rs1 = pstmt1.executeQuery();
|
||||||
log.fine("***** SQL1 " + sql1 + " variable " +getPP_Order_ID());
|
log.finest("***** SQL1 =[" + sql1 + "]; variable =[" +getPP_Order_ID() + "]");
|
||||||
while (rs1.next())
|
while (rs1.next())
|
||||||
{
|
{
|
||||||
System.out.println("***** Nodo " +rs1.getInt(2) +" status " +rs1.getString(1));
|
String docStatus = rs1.getString(1);
|
||||||
if(!rs1.getString(1).equals("CL"))
|
log.finest("***** PP_Order_Node_ID = [" +rs1.getInt(2) +"]; status =[" +docStatus + "]");
|
||||||
|
|
||||||
|
|
||||||
|
if(docStatus == null || !docStatus.equals("CL"))
|
||||||
{
|
{
|
||||||
MPPOrderNode onodenext = new MPPOrderNode(Env.getCtx(),rs1.getInt(2),get_TrxName());
|
MPPOrderNode onodenext = new MPPOrderNode(Env.getCtx(),rs1.getInt(2),get_TrxName());
|
||||||
onodenext.setDocStatus("CL");
|
onodenext.setDocStatus("CL");
|
||||||
|
|
Loading…
Reference in New Issue