Add an explicit null data check 70/62670/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 4 Sep 2017 20:38:11 +0000 (22:38 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 27 Sep 2017 08:21:39 +0000 (08:21 +0000)
commit8fd8a5cd918e198af4583917a238306cbe4e6ca2
treec41bc97567a0fd2d75c37f6b4ff183957c12b193
parent72f3d163eaef087a3d8d53a4f71ef885ed46e2d3
Add an explicit null data check

We have observed restconf attempting to put null data into a path,
leading to an implicit NPE without any explanation. Add an explicit
guard to catch such attempts.

Change-Id: I2e2125b04782d4f1c050d0aeb72161158da28c9f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit ee013d68ef799361ba9cdb0dfa5d8af5ece3d48a)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/AbstractDOMBrokerWriteTransaction.java