Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1370

NPE in parser reactor with if-feature inference

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • 6.0.6
    • 8.0.0, 6.0.9, 7.0.10
    • parser
    • None

    Description

      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. 

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              raju.kajulooti Lovaraju Kajulooti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: