aweisberg commented on code in PR #2049:
URL: https://github.com/apache/cassandra/pull/2049#discussion_r1063716030


##########
src/java/org/apache/cassandra/cql3/conditions/ColumnCondition.java:
##########
@@ -622,16 +855,21 @@ private static final class UDTFieldAccessBound extends 
Bound
         /**
          * The UDT field.
          */
+        @Nonnull
         private final FieldIdentifier field;
 
         /**
          * The conditions values.
          */
+        @Nonnull
         private final List<ByteBuffer> values;
 
         private UDTFieldAccessBound(ColumnMetadata column, FieldIdentifier 
field, Operator operator, List<ByteBuffer> values)
         {
             super(column, operator);
+            checkNotNull(field);
+            checkNotNull(values);
+            checkForUnsetValues(values);
             assert column.type.isUDT() && field != null;

Review Comment:
   Removed the extra null check on field



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