commit | 1f1c6eef5652b56531320dcc4dec4712f1741b56 | [log] [tgz] |
---|---|---|
author | Shashikanth VH <shashikanth.vh@huawei.com> | Wed Apr 27 20:05:07 2016 +0530 |
committer | Shashikanth VH <shashikanth.vh@huawei.com> | Wed Apr 27 20:05:24 2016 +0530 |
tree | afaae81bff68bc0e6584d0fb4e7a46153b5470fc | |
parent | 4e53f9b14d28841a1b99149d98d1c3364252dbaa [diff] |
Bug fix in persistent set add item. Change-Id: I0de6b27152b4384617689a1db05d9606baf79ec0
diff --git a/core/store/persistence/src/main/java/org/onosproject/persistence/impl/PersistentSet.java b/core/store/persistence/src/main/java/org/onosproject/persistence/impl/PersistentSet.java index 19279d8..067329c 100644 --- a/core/store/persistence/src/main/java/org/onosproject/persistence/impl/PersistentSet.java +++ b/core/store/persistence/src/main/java/org/onosproject/persistence/impl/PersistentSet.java
@@ -112,7 +112,7 @@ @Override public boolean add(E item) { - checkNotNull("Item to be added cannot be null."); + checkNotNull(item, "Item to be added cannot be null."); return items.add(serializer.encode(item)); }