Commit 9158c392 authored by ssalve's avatar ssalve

Sarita : Done changes to resolve NullPointerException Issue[23NOV2017]

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174558 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f357613f
...@@ -2627,7 +2627,7 @@ public class GstrPurchaseIC extends ValidatorEJB implements GstrPurchaseICRemote ...@@ -2627,7 +2627,7 @@ public class GstrPurchaseIC extends ValidatorEJB implements GstrPurchaseICRemote
//Changes by sarita on 23NOV2017 to resolve null pointer exception //Changes by sarita on 23NOV2017 to resolve null pointer exception
//gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1)).substring(0,2);//Value of StateCode set by using Supplier GSTIN number first 2digit. //gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1)).substring(0,2);//Value of StateCode set by using Supplier GSTIN number first 2digit.
gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1)); gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1));
if(gstnStateCode != null) if(gstnStateCode != null && gstnStateCode.length() > 2)
{ {
gstnStateCode = gstnStateCode.substring(0,2); gstnStateCode = gstnStateCode.substring(0,2);
} }
......
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