fix minor SONAR bug 78/88778/1
authorInstrumental <jonathan.gathman@att.com>
Wed, 29 May 2019 14:32:51 +0000 (09:32 -0500)
committerInstrumental <jonathan.gathman@att.com>
Wed, 29 May 2019 14:33:32 +0000 (09:33 -0500)
Issue-ID: AAF-835
Change-Id: I46bc1fcd083a26fe45f10f6f69913840fe4cdbaf
Signed-off-by: Instrumental <jonathan.gathman@att.com>
cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java

index 5221d8e..f4e0a68 100644 (file)
@@ -99,7 +99,8 @@ public class RegistrationCreator {
                                if (protocol!=null) {
                                        locate.setProtocol(protocol);
                                                List<String> ls = locate.getSubprotocol();
-                                               if(ls==null || ls.isEmpty()) {
+                                               // ls cannot be null, per generated getSubprotocol code
+                                               if(ls.isEmpty()) {
                                                String subprotocols = access.getProperty(Config.AAF_LOCATOR_SUBPROTOCOL + dot_le, null);
                                                if(subprotocols==null) {
                                                        subprotocols = access.getProperty(Config.CADI_PROTOCOLS, null);