smiklosovic commented on code in PR #2113:
URL: https://github.com/apache/cassandra/pull/2113#discussion_r1091712518


##########
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:
   I will revert this change. I was thinking it will be an easy fix but it 
seems like the whole class is filled with issues like this. We may dedicate 
separate ticket for that to clean it up properly.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to