Fix NPE in DataTreeCandidates 43/19543/3
authorTom Pantelis <tpanteli@brocade.com>
Mon, 4 May 2015 12:01:16 +0000 (08:01 -0400)
committerRobert Varga <rovarga@cisco.com>
Tue, 5 May 2015 07:38:16 +0000 (09:38 +0200)
commit14e78109d7f4d4ffd8f27cd06792f3b2b2a5691c
tree37f3b95e373466c7fc17f58e0faabdb0f4780178
parent6e8cb34ea33cbcbb2990af3247fd04b6a0af6846
Fix NPE in DataTreeCandidates

Patch https://git.opendaylight.org/gerrit/#/c/19473 introduced a
guaranteed NPE in DataTreeCandidates.NodeIterator. applyToModification
constructs a NodeIterator passing in a null parent. However the
NodeIterator ctor has PreCondition for non-null parent. Need to remove
the PreCondition.

(need unit tests for this code)

Change-Id: If778aaeede03a593ad2c6acf859f3741fdf0eedd
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/tree/DataTreeCandidates.java