Prevent NPE from being propagated from LazyDataObject 24/77624/4
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Nov 2018 14:09:49 +0000 (15:09 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Nov 2018 14:33:21 +0000 (15:33 +0100)
commit93e1775598fde7a18b2cf21b9009c50474411ea4
tree399e73e50cdff14a308452c6a2a0593e38e3109d
parent5376803e1c41d25f4c8e6e2ca38dc5e4d9fc18fb
Prevent NPE from being propagated from LazyDataObject

Rather than incurring a NPE when we fail to find proper
NodeContextSupplier, add an explicit verifyNotNull() check to
throw a more explanatory VerifyException.

Change-Id: Ieed6d050bccfe482f69152b33a9a84bbe20037c2
JIRA: MDSAL-18
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/DataObjectCodecContext.java