Bug 2271: Fixed potentional NPE in generateTypesFromChoiceCases 85/12485/1
authorLukas Sedlak <lsedlak@cisco.com>
Tue, 21 Oct 2014 14:17:35 +0000 (16:17 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Tue, 4 Nov 2014 09:40:36 +0000 (10:40 +0100)
commit305421e52fa2b4f522797d09f6d56bad5e6e72c5
tree2ae7aa010f4c95915865dc3af19d3c48d9abb6a1
parentfc439bb125e268d61c0c65b679177ae9f29f17f8
Bug 2271: Fixed potentional NPE in generateTypesFromChoiceCases

Added check to verify if parent is not null since not
all GeneratedTypes can implement ChildOf<parent>
definition.

Change-Id: I9b01dc154fa767e2411c563540135051c3aab678
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
(cherry picked from commit e296c756501bc50b1295a84a6ddd085850a71e32)
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java