maedhroz commented on code in PR #4175: URL: https://github.com/apache/cassandra/pull/4175#discussion_r2150497704
########## src/java/org/apache/cassandra/service/accord/txn/TxnCondition.java: ########## @@ -289,54 +291,99 @@ public boolean applies(TxnData data) FilteredPartition partition = reference.getPartition(data); boolean exists = partition != null && !partition.isEmpty(); - Row row = null; - if (exists) + if (reference.column() != null + && !reference.column().isPartitionKey()) Review Comment: Funny that the static analysis tools complain about this leaving NPE possible, but then I change it to... ``` ColumnMetadata column = reference.column(); if (column != null && !column.isPartitionKey()) ``` ...and it's apparently totally fine. -- 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-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org