Commit 5c36e7d4 authored by cpatil's avatar cpatil

for null pointer exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94276 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b0c4717e
......@@ -2068,15 +2068,17 @@ public class TaxFormRecoMulti extends ProcessEJB implements TaxFormRecoMultiLoca
{
lineNoTax = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("tax_form"))
if (childNodeName.equals("tax_form") )
{
taxForm = childNode.getFirstChild().getNodeValue();
System.out.println("=====================Form"+taxForm);
//taxForm = childNode.getFirstChild().getNodeValue(); // modify for null pointer exception on 19/02/14
taxForm = childNode.getFirstChild() == null?"":childNode.getFirstChild().getNodeValue();
System.out.println("=====================Form:"+taxForm);
}
if (childNodeName.equals("tax_form_date"))
{
taxFormDate = childNode.getFirstChild().getNodeValue();
System.out.println("Date=====================Date"+taxFormDate);
//taxFormDate = childNode.getFirstChild().getNodeValue(); // modify for null pointer exception on 19/02/14
taxFormDate = childNode.getFirstChild() == null?"":childNode.getFirstChild().getNodeValue();
System.out.println("Date=====================Date:"+taxFormDate);
}
}//inner for loop
if(type.equalsIgnoreCase("D")) //Condition added by jaimin 03/09/2007 requst-ID :DI78DIS028
......
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