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 ...@@ -64,7 +64,7 @@ public class MrpWizPrsSaveBean
NodeList hdrDom = null; NodeList hdrDom = null;
//Node currDetail = 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; double runningSupply=0,qtyReqd=0;
String tranId="",refId="",refLineNo="",unit="",errString=""; String tranId="",refId="",refLineNo="",unit="",errString="";
double quantity=0,qtyAllocated=0,totAllocQty=0,allocQty=0; double quantity=0,qtyAllocated=0,totAllocQty=0,allocQty=0;
...@@ -100,6 +100,8 @@ public class MrpWizPrsSaveBean ...@@ -100,6 +100,8 @@ public class MrpWizPrsSaveBean
NodeList detail4NodeList = detail4Node.getChildNodes(); NodeList detail4NodeList = detail4Node.getChildNodes();
System.out.println("@@@@@@@@@refrenceNode ["+detail4NodeList.getLength()+"]node name[" + detail4Node.getNodeName()+"]"); System.out.println("@@@@@@@@@refrenceNode ["+detail4NodeList.getLength()+"]node name[" + detail4Node.getNodeName()+"]");
if( detail4Node != null && detail4Node.getNodeValue() != null )
{
if("sale_order".equalsIgnoreCase( detail4Node.getNodeName())) if("sale_order".equalsIgnoreCase( detail4Node.getNodeName()))
{ {
saleOrder = detail4List.item(cntr).getFirstChild().getNodeValue(); saleOrder = detail4List.item(cntr).getFirstChild().getNodeValue();
...@@ -152,7 +154,7 @@ public class MrpWizPrsSaveBean ...@@ -152,7 +154,7 @@ public class MrpWizPrsSaveBean
{ {
availableSupplyStr = detail4List.item(cntr).getFirstChild().getNodeValue(); availableSupplyStr = detail4List.item(cntr).getFirstChild().getNodeValue();
} }
}
} }
} }
System.out.println("@@@@ctr["+dtlCtr+"]saleOrder["+saleOrder+"]-lineNo["+lineNo+"]-qtyReqd["+qtyReqdStr+"]@@@"); System.out.println("@@@@ctr["+dtlCtr+"]saleOrder["+saleOrder+"]-lineNo["+lineNo+"]-qtyReqd["+qtyReqdStr+"]@@@");
...@@ -248,7 +250,7 @@ public class MrpWizPrsSaveBean ...@@ -248,7 +250,7 @@ public class MrpWizPrsSaveBean
return ""; return "";
} }
/* /*
private String generateTranId( String windowName, String siteCode, Connection conn )throws ITMException private String generateTranId( String windowName, String siteCode, Connection conn )throws ITMException
{ {
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -330,7 +332,7 @@ public class MrpWizPrsSaveBean ...@@ -330,7 +332,7 @@ public class MrpWizPrsSaveBean
return tranId; return tranId;
}//generateTranTd() }//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