Bump yangtools to 3.0.0
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / main / java / org / opendaylight / mdsal / dom / store / inmemory / AbstractDOMShardTreeChangePublisher.java
index 3fc183ee34b35da2453c72702ebfe4423a341d10..94a17882b9309e4b3bd689380406690e1380e4a8 100644 (file)
@@ -256,7 +256,7 @@ abstract class AbstractDOMShardTreeChangePublisher extends AbstractDOMStoreTreeC
             // strip nodes we do not need since this listener doesn't have to be registered at the root of the DataTree
             DataTreeCandidateNode modifiedChild = dataTree.prepare(modification).getRootNode();
             for (final PathArgument pathArgument : listenerPath.getPathArguments()) {
-                modifiedChild = modifiedChild.getModifiedChild(pathArgument);
+                modifiedChild = modifiedChild.getModifiedChild(pathArgument).orElse(null);
             }
 
             if (modifiedChild == null) {