commit | f6727bf4545334e77b6fbb68c235a3a9d660404e | [log] [tgz] |
---|---|---|
author | wu <wu.shaoyong@zte.com.cn> | Mon Oct 22 16:18:16 2018 +0800 |
committer | wu <wu.shaoyong@zte.com.cn> | Mon Oct 22 16:18:16 2018 +0800 |
tree | 68207c5c868e4bd358ee8f753ec0545a95cf2f35 | |
parent | dc897a64d6bcd4a94a6c7431aca1a8a096b4e8d6 [diff] |
The nep.getSipId() should be checked if it is null. Change-Id: I6b52c45f9a9f797b2c89da24cd0158396e13d662
diff --git a/apps/odtn/service/src/main/java/org/onosproject/odtn/internal/DefaultTapiResolver.java b/apps/odtn/service/src/main/java/org/onosproject/odtn/internal/DefaultTapiResolver.java index f309d6d..6167377 100644 --- a/apps/odtn/service/src/main/java/org/onosproject/odtn/internal/DefaultTapiResolver.java +++ b/apps/odtn/service/src/main/java/org/onosproject/odtn/internal/DefaultTapiResolver.java
@@ -97,7 +97,7 @@ public boolean hasNepRef(String sipId) { updateCache(); return tapiNepRefList.stream() - .anyMatch(nep -> nep.getSipId().equals(sipId)); + .anyMatch(nep -> nep.getSipId() != null && nep.getSipId().equals(sipId)); } @Override