You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2022/05/04 06:43:00 UTC

[jira] [Created] (CASSANDRA-17596) Fix NPE in SimpleBuilders.ParititionUpdateBulder.RTBuilder.build

Stefan Miklosovic created CASSANDRA-17596:
---------------------------------------------

             Summary: Fix NPE in SimpleBuilders.ParititionUpdateBulder.RTBuilder.build
                 Key: CASSANDRA-17596
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17596
             Project: Cassandra
          Issue Type: Bug
          Components: Legacy/Core
            Reporter: Stefan Miklosovic


These two arrays are not initialised (1) which means that if I do not set start nor end, when ClusteringBound.create is called, it will be null, but it will fail here (2) as values will be null.

The fix consists of check if values are null and if they are, we build that bound immediately.

(1) https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/SimpleBuilders.java#L257-L258
(2) https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/ClusteringBound.java#L128



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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