Commit 8799f3fa authored by vvengurlekar's avatar vvengurlekar

ReceivablesOpeningConf.java - added Resultset and prepared statement closing...

ReceivablesOpeningConf.java - added Resultset and prepared statement closing after checking null in finally


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192776 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 95810750
...@@ -247,11 +247,22 @@ conn = getConnection(); ...@@ -247,11 +247,22 @@ conn = getConnection();
{ {
try try
{ {
pstmt.close(); /*pstmt.close();
pstmt = null; pstmt = null;
rs.close();
rs = null;*/
//changed by Varsha V on 12-11-18
if(rs != null)
{
rs.close(); rs.close();
rs = null; rs = null;
} }
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception [06][confirmReceivables]" + e.getMessage()); System.out.println("Exception [06][confirmReceivables]" + e.getMessage());
...@@ -390,12 +401,22 @@ conn = getConnection(); ...@@ -390,12 +401,22 @@ conn = getConnection();
finally finally
{ {
try try
{
/*rsMst.close();
rsMst = null;
pstmt1.close();
pstmt1 = null;*/
if(rsMst != null)
{ {
rsMst.close(); rsMst.close();
rsMst = null; rsMst = null;
}
if(pstmt1 != null)
{
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
} }
}
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception [09][confirmReceivables]" + e.getMessage()); System.out.println("Exception [09][confirmReceivables]" + e.getMessage());
......
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