Prevent NPE from being propagated from LazyDataObject 45/77645/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Nov 2018 14:09:49 +0000 (15:09 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 21 Nov 2018 11:10:19 +0000 (11:10 +0000)
commit86c355edccc7e5f48e4c7ad3938ac37312fac24c
treec8df44a44cd279826f53ca142559569718cfdb2b
parent44c2dbb7355bd3ff3e9fef4e2049feaee514a005
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>
(cherry picked from commit 93e1775598fde7a18b2cf21b9009c50474411ea4)
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/DataObjectCodecContext.java