skoppu22 commented on code in PR #365:
URL: https://github.com/apache/cassandra-sidecar/pull/365#discussion_r3429615056


##########
server/src/main/java/org/apache/cassandra/sidecar/cluster/locator/CachedLocalTokenRanges.java:
##########
@@ -104,7 +104,7 @@ public Map<Integer, Set<TokenRange>> 
localTokenRanges(String keyspace, boolean f
             return Collections.emptyMap();
         }
 
-        if (metadata.getKeyspace(keyspace) == null)
+        if (metadata.getKeyspace(Metadata.quoteIfNecessary(keyspace)) == null)

Review Comment:
   We need to check for keyspace == null before this, otherwise 
quoteIfNecessary may access null string



-- 
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