summaryrefslogtreecommitdiffstats
path: root/sdnr/wt
diff options
context:
space:
mode:
authorMichael Dürre <michael.duerre@highstreet-technologies.com>2022-10-11 11:08:59 +0200
committerTimoney, Dan (dt5972) <dtimoney@att.com>2022-10-24 11:15:04 -0400
commitac86c13e723f6d7cc70526c9ac3080f565ee2da2 (patch)
treeb741a9553337557b0791b2bb7bdb6fbbc6ce9407 /sdnr/wt
parent92897647669a61e773a8ec1726c1e98b85c315ac (diff)
fix mariadb init
fix mariadb startup with controllerId set Fixed compile issue due to expired sli version Issue-ID: CCSDK-3786 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: I1edda62e928385f144245223281c5a3540016590 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt')
-rw-r--r--sdnr/wt/data-provider/dblib/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/database/sqldb/data/SqlDBDataProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/data-provider/dblib/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/database/sqldb/data/SqlDBDataProvider.java b/sdnr/wt/data-provider/dblib/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/database/sqldb/data/SqlDBDataProvider.java
index cabe6bed0..cb66fc6fb 100644
--- a/sdnr/wt/data-provider/dblib/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/database/sqldb/data/SqlDBDataProvider.java
+++ b/sdnr/wt/data-provider/dblib/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/database/sqldb/data/SqlDBDataProvider.java
@@ -512,7 +512,7 @@ public class SqlDBDataProvider extends HtDatabaseEventsService implements Databa
query = String.format("INSERT INTO `%s` (`id`,`desc`) VALUES ('%s','%s')", this.controllerTableName,
this.controllerId, "");
LOG.trace(query);
- try { data.close(); } catch (SQLException ignore) { }
+ try { if(data!=null){data.close();} } catch (SQLException ignore) { }
return this.dbClient.write(query);
} else {
LOG.trace("controllerId already set");