Commit bda2173a authored by ssalve's avatar ssalve

Done changes to correct finally block on 14NOV2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173486 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b266a10c
...@@ -686,16 +686,23 @@ public class SchemeDefMaster extends ValidatorEJB implements ...@@ -686,16 +686,23 @@ public class SchemeDefMaster extends ValidatorEJB implements
//Added by sarita on 13NOV2017 //Added by sarita on 13NOV2017
finally finally
{ {
if (pstmt != null) try
{ {
pstmt.close(); if (pstmt != null)
pstmt = null; {
pstmt.close();
pstmt = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
} }
if (rs != null) catch(Exception e)
{ {
rs.close(); e.printStackTrace();
rs = null; }
}
} }
return errString; return errString;
...@@ -773,6 +780,9 @@ public class SchemeDefMaster extends ValidatorEJB implements ...@@ -773,6 +780,9 @@ public class SchemeDefMaster extends ValidatorEJB implements
e.printStackTrace(); e.printStackTrace();
} }
//Added by sarita on 13NOV2017 //Added by sarita on 13NOV2017
finally
{
try
{ {
if (pstmt != null) if (pstmt != null)
{ {
...@@ -785,6 +795,11 @@ public class SchemeDefMaster extends ValidatorEJB implements ...@@ -785,6 +795,11 @@ public class SchemeDefMaster extends ValidatorEJB implements
rs = null; rs = null;
} }
} }
catch(Exception e)
{
e.printStackTrace();
}
}
return errString; return errString;
} }
......
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