Commit b266a10c 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@173485 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ba5e13da
......@@ -465,16 +465,23 @@ public class LocationMaster extends ValidatorEJB implements
//Added by sarita on 13NOV2017
finally
{
if (pstmt != null)
try
{
pstmt.close();
pstmt = null;
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
}
if (rs != null)
catch(Exception e)
{
rs.close();
rs = null;
}
e.printStackTrace();
}
}
return errString;
......@@ -554,19 +561,24 @@ public class LocationMaster extends ValidatorEJB implements
//Added by sarita on 13NOV2017
finally
{
if (pstmt != null)
try
{
pstmt.close();
pstmt = null;
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
}
if (rs != null)
catch(Exception e)
{
rs.close();
rs = null;
}
}
e.printStackTrace();
} }
return errString;
}
public void callPstRs(PreparedStatement pstmt, ResultSet rs) {
......
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