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


##########
src/java/org/apache/cassandra/cql3/statements/schema/CreateIndexStatement.java:
##########
@@ -221,6 +222,7 @@ Set<String> clientWarnings(KeyspacesDiff diff)
     private void validateIndexTarget(TableMetadata table, IndexMetadata.Kind 
kind, IndexTarget target)
     {
         ColumnMetadata column = table.getColumn(target.column);
+        AbstractType<?> baseType = column.type.unwrap();

Review Comment:
   @sunil9977 this will NPE when `column` is null, that check is just on the 
next line after you unwrapped it.



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