Fix blocker sonar issues in dmaap-kafka11aaf
[dmaap/kafka11aaf.git] / src / main / java / org / onap / dmaap / kafkaAuthorize / KafkaCustomAuthorizer.java
index cb33e29..acafbdf 100644 (file)
@@ -94,7 +94,7 @@ public class KafkaCustomAuthorizer implements Authorizer {
                                logger.info("^Event Received for topic " + topicName + " , User " + fullName + " , action = " + action);
                        }
 
-                       if (fullName.equals("admin")) {
+                       if (null != fullName && fullName.equals("admin")) {
                                return true;
                        }