commit | b3c5ce21090ed60f4b64976ac78f916c6e706380 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Mon Aug 10 09:07:36 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Aug 12 22:16:09 2015 +0000 |
tree | 1fca295478c613dbedf7558207d88c272def375b | |
parent | 260f6ef475202bc527c933feaa529e50bb089234 [diff] [blame] |
Unit tests for the distributed group store. Change-Id: Ie8f00b9bbc1ba46a6f80e70f63d1fd853d64154b
diff --git a/core/api/src/test/java/org/onosproject/store/service/TestEventuallyConsistentMap.java b/core/api/src/test/java/org/onosproject/store/service/TestEventuallyConsistentMap.java index 5ee44c4..4f612de 100644 --- a/core/api/src/test/java/org/onosproject/store/service/TestEventuallyConsistentMap.java +++ b/core/api/src/test/java/org/onosproject/store/service/TestEventuallyConsistentMap.java
@@ -91,7 +91,9 @@ EventuallyConsistentMapEvent<K, V> addEvent = new EventuallyConsistentMapEvent<>(mapName, PUT, key, value); notifyListeners(addEvent); - peerUpdateFunction.apply(key, value); + if (peerUpdateFunction != null) { + peerUpdateFunction.apply(key, value); + } } @Override