Commit 3d869a0c authored by mnair's avatar mnair

Added changes to remove NULL Pointer Exception

column name-adhoc_repl_perc
line no-351


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@43929 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e728f5a5
......@@ -3,6 +3,6 @@ HeaderColumnWidths=289,74,146
SortOrder=1
SortRole=date
Sorting=2
Timestamp=2016,6,14,17,36,54
Timestamp=2017,5,30,15,18,40
Version=3
ViewMode=1
......@@ -348,7 +348,22 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site
}
else if(childNodeName.equalsIgnoreCase("adhoc_repl_perc"))
{
adhoc = Double.parseDouble(genericUtility.getColumnValue("adhoc_repl_perc", dom));
/*Changed by Mayur Nair on 30-05-2017,to remove NULLPointerException [Start]
adhoc = Double.parseDouble(genericUtility.getColumnValue("adhoc_repl_perc", dom));*/
String adhoc1 = genericUtility.getColumnValue("adhoc_repl_perc", dom);
if(adhoc1 == null)
{
adhoc = 0;
}
else
{
adhoc = Double.parseDouble(adhoc1);
}
//Changed by Mayur Nair on 30-05-2017,to remove NULL Pointer Exception [End]
if( adhoc != 0 && adhoc < 0 || adhoc > 100)
{
errCode = "VTADH";
......
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