diff --git a/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java b/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java index 1ae8d46e89..a143fca681 100644 --- a/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java +++ b/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java @@ -145,7 +145,7 @@ public class DistributedDynamicConfigStore if (spath == null) { throw new FailedException("Invalid ResourceId, cannot create Node"); } - if (spath.equals(ResourceIdParser.ROOT) && node == null) { + if (spath.equals(ResourceIdParser.ROOT)) { return CompletableFuture.completedFuture(true); } else if (complete(keystore.get(DocumentPath.from(spath))) == null) { throw new FailedException("Node or parent does not exist for " + spath);