Add check for NULL result for returned list
@@ -30,6 +30,7 @@ public abstract class SQLServerListOperationHandler<TOperation extends Operation
state.logQuery(operation.getClass().getSimpleName(), queryString);
ResultSet result = stmt.executeQuery();
+ if (result != null){
while (result.next()) {
resultCount++;
@@ -39,6 +40,9 @@ public abstract class SQLServerListOperationHandler<TOperation extends Operation
}
results.add(tuple);
}
+ }
+
+
} catch (Exception e) {
throw new DbException(e);
}
