smiklosovic commented on code in PR #4379:
URL: https://github.com/apache/cassandra/pull/4379#discussion_r2445142539
##########
src/java/org/apache/cassandra/cql3/statements/CreateRoleStatement.java:
##########
@@ -52,7 +54,11 @@ public class CreateRoleStatement extends
AuthenticationStatement
public CreateRoleStatement(RoleName name, RoleOptions options,
DCPermissions dcPermissions,
CIDRPermissions cidrPermissions, boolean
ifNotExists)
{
- this.role = RoleResource.role(name.getName());
+ if (name == null || name.getName() == null)
Review Comment:
yes that is better
--
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]