aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-07-17 14:12:48 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-17 14:12:48 +0000
commitd7b5fa70771282ec905a46c6e266dbdcef98a584 (patch)
treefb7aeadc125b3bc49e3b8618548cc9fa0e441b99
parentaeeba1d69f0498808252d5555b06b8fb6cae9269 (diff)
parentb84ab092b638b5babc0c9c4c3a11d39deb03c695 (diff)
Merge "Fix sonar issue in SqlResource.java"
-rwxr-xr-xsql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java b/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java
index 1c0a0087..767fdac7 100755
--- a/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java
+++ b/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java
@@ -455,14 +455,15 @@ public class SqlResource implements SvcLogicResource, SvcLogicJavaPlugin {
LOG.warn("Cannot decrypt " + tableName + "." + colName);
}
} catch (Exception e) {
- if (results != null) {
+ LOG.error("Caught exception trying to decrypt " + tableName + "." + colName, e);
+ }finally {
+ if (results != null) {
try {
results.close();
- } catch (SQLException ignored) {
-
+ } catch (SQLException se) {
+ LOG.error("Caught exception trying to close ResultSet",se);
}
}
- LOG.error("Caught exception trying to decrypt " + tableName + "." + colName, e);
}
}
return (strValue);