Github user nlippke commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1997#discussion_r180005903
  
    --- Diff: 
artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/AbstractJDBCDriver.java
 ---
    @@ -179,32 +179,61 @@ private void createTableIfNotExists(String tableName, 
String... sqls) throws SQL
           logger.tracef("Validating if table %s didn't exist before creating", 
tableName);
           try {
              connection.setAutoCommit(false);
    +         final boolean tableExists;
              try (ResultSet rs = connection.getMetaData().getTables(null, 
null, tableName, null)) {
    -            if (rs != null && !rs.next()) {
    +            if ((rs == null) || (rs != null && !rs.next())) {
    --- End diff --
    
    `connection.getMetaData().getTables()` can return _null_?


---

Reply via email to