commit | 1c9b4e9f71a9033088ad1fd5419f362624a9d482 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan.jampani@gmail.com> | Wed Feb 17 18:33:11 2016 -0800 |
committer | Madan Jampani <madan.jampani@gmail.com> | Wed Feb 17 18:33:11 2016 -0800 |
tree | b722252bed7f94bc8d54425cd01e41b6756797f1 | |
parent | 6c17718e0dc4b7e12e0e177184a855476df8c8fd [diff] |
Fix NPE in StoragePartition Change-Id: Ibd71260381d79304243ae7448ff4b2155483dd5a
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartition.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartition.java index d8fb580..41cdf7c 100644 --- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartition.java +++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartition.java
@@ -78,7 +78,7 @@ @Override public CompletableFuture<Void> open() { - return openServer().thenAccept(s -> server = Optional.of(s)) + return openServer().thenAccept(s -> server = Optional.ofNullable(s)) .thenCompose(v-> openClient()) .thenAccept(v -> isOpened.set(true)) .thenApply(v -> null);