summaryrefslogtreecommitdiffstats
path: root/cadi
diff options
context:
space:
mode:
Diffstat (limited to 'cadi')
-rw-r--r--cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java
index 5221d8ea..f4e0a688 100644
--- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java
+++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/register/RegistrationCreator.java
@@ -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);