check for null connection meta data
@@ -9,6 +9,7 @@ import java.sql.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Objects;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -90,6 +91,10 @@ public class SetupDatabase {
try (Connection connection = getConnection(nodeAlias)) {
DatabaseMetaData metaData = connection.getMetaData();
+ if(Objects.isNull(metaData)) {
+ LOGGER.warn("No connection metadata returning");
+ return;
+ }
List<String> tableNames = new ArrayList<>();
try (ResultSet rs = metaData.getTables(null, null, "%", null)) {
