commit | 6e5f47043115eaf2ecc31e079b33c4fe3e76a433 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Mon Nov 21 11:42:11 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Nov 21 21:31:56 2016 +0000 |
tree | ecc82e0316ed9975b9fd39d73921c988a404d599 | |
parent | 9b152fcdb910a7e64bc3c84d8bf9992e5cadf962 [diff] |
Fixing NoSuchElementException observed connecting Centec switch Change-Id: I9f35c19b70f04ec9db8f751aa1bfef91874900f7
diff --git a/core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java b/core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java index 64df685..a1f9e9b 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java
@@ -1109,7 +1109,7 @@ group = getGroupIdTable(key.deviceId()).values() .stream() .filter((storedGroup) -> (storedGroup.appCookie().equals(key.appCookie))) - .findFirst().get(); + .findFirst().orElse(null); if (group == null) { log.error("GroupStoreKeyMapListener: Received " + "event {} with null entry... can not process", mapEvent.type());