Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-190

AbstractDataBrokerTest put of DataObject with Augmentation causing a NPE due to BindingRuntimeContext.getTypeWithSchema null

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 6252

    Description

      When you try to put of DataObject (Interface) with an Augmentation (InterfaceAcl) into a DataBroker in an AbstractDataBrokerTest, then in org.opendaylight.yangtools.sal.binding.generator.util.BindingRuntimeContext.getTypeWithSchema(Type) the lookup in that BiMap<Type, Object> typeToDefiningSchema is empty for that Type referencedType (the Augment) ... and you get an NPE or a message such as "java.lang.NullPointerException: Failed to find schema for type ReferencedTypeImpl [packageName=org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608, name=InterfaceAcl]" with https://git.opendaylight.org/gerrit/#/c/42296/

      I'll post a Gerrit with a reproducer for this problem in a second.

      Attachments

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

        Activity

          People

            vorburger Michael Vorburger
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: