Uploaded image for project: 'honeycomb'
  1. honeycomb
  2. HONEYCOMB-96

Ipv4 container initializing/writing causes NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 16.09
    • None
    • None

      Ipv4 container enforces mandatory behaviour for addresses sub-container by its structure. This leads to NullPointer exceptions while initializing/writing Ipv4 container.

      Model request

      PUT - http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0

      "interface":{
      "name":"local0",
      "type": "iana-if-type:ethernetCsmacd",
      "enabled":"true",
      "ipv4":{

      • --missing address block here*
        "neighbor": { "ip":"192.168.2.1", "link-layer-address":"aa:aa:aa:aa:aa:aa" }

        }
        }

      leads to null pointer ,but not by obvious use of null object as interable for List in Ipv4Customizer(line 100),but because proxy objects thats is hidden behind Ipv4 container interface does not have present sub-container for Addresses and throws NullPointerException. This all is cause by attempt to writer container Addresses by writer of Ipv4 whitch is by itself wrong design.

            jsrnicek Ján Srniček
            jsrnicek Ján Srniček
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified