condition on finally clause modified in the process method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManagerAlgorithms@99397 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
235b900984
commit
df7c0e9d7a
|
@ -147,7 +147,7 @@ public class GetTableDetails extends StandardLocalExternalAlgorithm {
|
|||
|
||||
} finally {
|
||||
|
||||
if (sf.isClosed() == false) {
|
||||
if (sf!=null && sf.isClosed() == false) {
|
||||
mgt.closeConnection();
|
||||
}
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ public class ListSchemas extends StandardLocalExternalAlgorithm {
|
|||
|
||||
} finally {
|
||||
|
||||
if (sf.isClosed() == false) {
|
||||
if (sf!=null && sf.isClosed() == false) {
|
||||
mgt.closeConnection();
|
||||
}
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ public class ListTables extends StandardLocalExternalAlgorithm {
|
|||
|
||||
} finally {
|
||||
|
||||
if (sf.isClosed() == false) {
|
||||
if (sf!=null && sf.isClosed() == false) {
|
||||
mgt.closeConnection();
|
||||
}
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ public class RandomSampleOnTable extends StandardLocalExternalAlgorithm {
|
|||
|
||||
} finally {
|
||||
// close the connection
|
||||
if (sf.isClosed() == false) {
|
||||
if (sf!=null && sf.isClosed() == false) {
|
||||
mgt.closeConnection();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ public class SampleOnTable extends StandardLocalExternalAlgorithm {
|
|||
|
||||
} finally {
|
||||
// close the connection
|
||||
if (sf.isClosed() == false) {
|
||||
if (sf!=null && sf.isClosed() == false) {
|
||||
mgt.closeConnection();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ public class SmartSampleOnTable extends StandardLocalExternalAlgorithm {
|
|||
|
||||
} finally {
|
||||
// close the connection
|
||||
if (sf.isClosed() == false) {
|
||||
if (sf!=null && sf.isClosed() == false) {
|
||||
mgt.closeConnection();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue