commit | 1e8e89c9a72a87505a8ae63941bf14b6a91a2c43 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan.jampani@gmail.com> | Tue Feb 02 08:53:56 2016 -0800 |
committer | Madan Jampani <madan.jampani@gmail.com> | Tue Feb 02 08:53:56 2016 -0800 |
tree | 7a8d7740c0f2f50dc8b3224d1b2ffe032ad775d4 | |
parent | 81ab23b3eb4c925aabd09bc714eec5ca5a916635 [diff] |
Fixes NPEs in TranscodingAsyncConsistentMap deserialization code paths Change-Id: I7898a08d0b999fd6c84ead616856f04bc9765ed5
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/TranscodingAsyncConsistentMap.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/TranscodingAsyncConsistentMap.java index c6dd578..a1fe73f 100644 --- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/TranscodingAsyncConsistentMap.java +++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/TranscodingAsyncConsistentMap.java
@@ -60,9 +60,9 @@ Function<V2, V1> valueDecoder) { this.backingMap = backingMap; this.keyEncoder = k -> k == null ? null : keyEncoder.apply(k); - this.keyDecoder = keyDecoder; + this.keyDecoder = k -> k == null ? null : keyDecoder.apply(k); this.valueEncoder = v -> v == null ? null : valueEncoder.apply(v); - this.valueDecoder = valueDecoder; + this.valueDecoder = v -> v == null ? null : valueDecoder.apply(v); this.versionedValueTransform = v -> v == null ? null : v.map(valueDecoder); }