I have tried parsing the attached yang files (augment-if-feature.zip) it is failed with below exception
Caused by: java.lang.NullPointerExceptionCaused by: java.lang.NullPointerException at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl$PhaseModificationInNamespacePath.namespaceItemAdded(ModifierImpl.java:406) at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.onNamespaceItemAddedAction(StatementContextBase.java:682) at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl$PhaseModificationInNamespacePath.hookOnto(ModifierImpl.java:426)
Reason: "notification subscription-started" is defined under "configured" if-feature, but the augmenting node doesn't have this if-feature difined.
If I uncomment the line number 31 in ietf-yang-push (that is defining if-feature "sn:configured" for augment node), above error was not seen.
- relates to
-
YANGTOOLS-1485 Fail to process deviation of augmented node without feature support
- Resolved