Commit 94c0a368 authored by vvengurlekar's avatar vvengurlekar

MiscVoucherIC.java - for changing combined NumberFormatException and...

MiscVoucherIC.java - for changing combined NumberFormatException and NullPointerException catch block


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191422 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 372aebf6
......@@ -2695,7 +2695,11 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
{
payRndTo = Integer.parseInt(payRndTo)+"";
}
catch (NumberFormatException | NullPointerException nfe)
catch (NumberFormatException nfe)
{
payRndTo = "1";
}
catch (NullPointerException nfe)
{
payRndTo = "1";
}
......@@ -3881,7 +3885,11 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
{
payRndTo = Integer.parseInt(payRndTo)+"";
}
catch (NumberFormatException | NullPointerException nfe)
catch (NumberFormatException nfe)
{
payRndTo = "1";
}
catch (NullPointerException nfe)
{
payRndTo = "1";
}
......
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