Commit ba886c8d authored by cpatil's avatar cpatil

added condition for null pointer exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95275 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 06e26fb4
......@@ -64,7 +64,7 @@ public class MrpWizPrsSaveBean
NodeList hdrDom = null;
//Node currDetail = null;
String saleOrder="",lineNo="", siteCode="", lotNo="", locCode="", lotSl="", tranSer="", runningSupplyStr="", qtyReqdStr="",allocQtyStr="";
String saleOrder=" ",lineNo=" ", siteCode=" ", lotNo=" ", locCode="", lotSl=" ", tranSer="", runningSupplyStr="", qtyReqdStr="",allocQtyStr="";
double runningSupply=0,qtyReqd=0;
String tranId="",refId="",refLineNo="",unit="",errString="";
double quantity=0,qtyAllocated=0,totAllocQty=0,allocQty=0;
......@@ -100,6 +100,8 @@ public class MrpWizPrsSaveBean
NodeList detail4NodeList = detail4Node.getChildNodes();
System.out.println("@@@@@@@@@refrenceNode ["+detail4NodeList.getLength()+"]node name[" + detail4Node.getNodeName()+"]");
if( detail4Node != null && detail4Node.getNodeValue() != null )
{
if("sale_order".equalsIgnoreCase( detail4Node.getNodeName()))
{
saleOrder = detail4List.item(cntr).getFirstChild().getNodeValue();
......@@ -152,7 +154,7 @@ public class MrpWizPrsSaveBean
{
availableSupplyStr = detail4List.item(cntr).getFirstChild().getNodeValue();
}
}
}
}
System.out.println("@@@@ctr["+dtlCtr+"]saleOrder["+saleOrder+"]-lineNo["+lineNo+"]-qtyReqd["+qtyReqdStr+"]@@@");
......@@ -248,7 +250,7 @@ public class MrpWizPrsSaveBean
return "";
}
/*
/*
private String generateTranId( String windowName, String siteCode, Connection conn )throws ITMException
{
PreparedStatement pstmt = null;
......@@ -330,7 +332,7 @@ public class MrpWizPrsSaveBean
return tranId;
}//generateTranTd()
*/
*/
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment