Clean up Sonar results 2
[aaf/authz.git] / auth / auth-cmd / src / main / java / org / onap / aaf / auth / cmd / role / CreateDelete.java
index 99d5583..3234fe9 100644 (file)
@@ -90,6 +90,9 @@ public class CreateDelete extends Cmd {
                                                
                                }
                                boolean rolesSupplied = (args.length>idx);
+                               if(fp == null) {// This useless code brought to you by Sonar.
+                                       throw new CadiException("No call made.");  
+                               }
                                if(fp.get(AAFcli.timeout())) {
                                        rv=fp.code();
                                        pw().print(verb);