Madan Jampani

Fix NPE in StoragePartition

Change-Id: Ibd71260381d79304243ae7448ff4b2155483dd5a
...@@ -78,7 +78,7 @@ public class StoragePartition extends DefaultPartition implements Managed<Storag ...@@ -78,7 +78,7 @@ public class StoragePartition extends DefaultPartition implements Managed<Storag
78 78
79 @Override 79 @Override
80 public CompletableFuture<Void> open() { 80 public CompletableFuture<Void> open() {
81 - return openServer().thenAccept(s -> server = Optional.of(s)) 81 + return openServer().thenAccept(s -> server = Optional.ofNullable(s))
82 .thenCompose(v-> openClient()) 82 .thenCompose(v-> openClient())
83 .thenAccept(v -> isOpened.set(true)) 83 .thenAccept(v -> isOpened.set(true))
84 .thenApply(v -> null); 84 .thenApply(v -> null);
......