You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "jacek-lewandowski (via GitHub)" <gi...@apache.org> on 2023/01/31 07:12:21 UTC

[GitHub] [cassandra] jacek-lewandowski commented on a diff in pull request #2113: Cassandra 18153 reproducer

jacek-lewandowski commented on code in PR #2113:
URL: https://github.com/apache/cassandra/pull/2113#discussion_r1091530266


##########
src/java/org/apache/cassandra/db/SystemKeyspace.java:
##########
@@ -1242,7 +1250,7 @@ public static UUID getSchemaVersion()
         String req = "SELECT schema_version FROM system.%s WHERE key='%s'";
         UntypedResultSet result = executeInternal(format(req, LOCAL, LOCAL));
 
-        if (!result.isEmpty() && result.one().has("schema_version"))
+        if (result != null && result.isEmpty() && result.one().has("schema_version"))

Review Comment:
   `... && !result.isEmpty()` ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org