Commit 011d3213 authored by smanohar's avatar smanohar

In case tran_id is null not to get values from database as it was giving null pointer exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206003 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b6b5dca3
......@@ -55,6 +55,10 @@ public class ReceiptExRefItmChg extends ValidatorEJB implements ReceiptExRefItmC
String valueXmlString = "";
try
{
System.out.println("In item change xmlString [" + xmlString + "]");
System.out.println("In item change xmlString1 [" + xmlString1 + "]");
System.out.println("In item change xmlString2 [" + xmlString2 + "]");
dom = parseString(xmlString);
dom1 = parseString(xmlString1);
if (xmlString2.trim().length() > 0 )
......@@ -142,7 +146,8 @@ public class ReceiptExRefItmChg extends ValidatorEJB implements ReceiptExRefItmC
tranId = getColumnValue("tran_id",dom);
System.out.println("tranId>>>>>>>>>>>>>"+tranId);
if (tranId != null && tranId.trim().length() > 0)
{
sql = "select confirmed from porcp where tran_id = '"+tranId+"' " ;
pstmt=conn.prepareStatement(sql);
rs = pstmt.executeQuery();
......@@ -216,6 +221,7 @@ public class ReceiptExRefItmChg extends ValidatorEJB implements ReceiptExRefItmC
valueXmlString.append("<excise_date/>\r\n");
}
}
}
}//end of itm default
......
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