Commit 59a7c8bb authored by ssalve's avatar ssalve

Sarita: Done changes to resolve nullpointer issue on 24JAN2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179093 ce508802-f39f-4f6c-b175-0d175dae99d5
parent eb0a97d4
...@@ -989,7 +989,7 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote ...@@ -989,7 +989,7 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
} }
else if("allocation".equalsIgnoreCase(currentColumn)) else if("allocation".equalsIgnoreCase(currentColumn))
{ {
String accountCode=""; String accountCode="",allocation="";
Node curDetail = dom.getChildNodes().item(0); Node curDetail = dom.getChildNodes().item(0);
...@@ -998,7 +998,13 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote ...@@ -998,7 +998,13 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
System.out.println("domIDDet ["+domIDDet+"]"); System.out.println("domIDDet ["+domIDDet+"]");
totUnit = Double.parseDouble(genericUtility.getColumnValue("tot_units", dom)); totUnit = Double.parseDouble(genericUtility.getColumnValue("tot_units", dom));
allocation = genericUtility.getColumnValue("allocation", dom);
System.out.println("totUnit ["+totUnit+"]" + "\t"+ "allocation ["+allocation+"]");
//Added by sarita on 24JAN2018
if(allocation != null && allocation.trim().length() > 0)
{
allocation_perc = Double.parseDouble(genericUtility.getColumnValue("allocation", dom)); allocation_perc = Double.parseDouble(genericUtility.getColumnValue("allocation", dom));
}
System.out.println("Value of totUnit :::: ["+totUnit+"]" + "allocation_perc :::: ["+allocation_perc+"]"); System.out.println("Value of totUnit :::: ["+totUnit+"]" + "allocation_perc :::: ["+allocation_perc+"]");
unitAllocation = setUnitAllocationValue(totUnit,allocation_perc); unitAllocation = setUnitAllocationValue(totUnit,allocation_perc);
accountCode = checkNull(genericUtility.getColumnValue("acct_code", dom)); accountCode = checkNull(genericUtility.getColumnValue("acct_code", dom));
...@@ -1020,6 +1026,7 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote ...@@ -1020,6 +1026,7 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
System.out.println(e);
System.out.println(":::" + getClass().getSimpleName() + "::"+ e.getMessage()); System.out.println(":::" + getClass().getSimpleName() + "::"+ e.getMessage());
throw new ITMException(e); throw new ITMException(e);
} }
......
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