Fix uninitialized ExtensionDefinition for openconfig-version 54/59254/1
authorIgor Foltin <igor.foltin@pantheon.tech>
Tue, 20 Jun 2017 14:01:17 +0000 (16:01 +0200)
committerMartin Ciglan <martin.ciglan@pantheon.tech>
Tue, 20 Jun 2017 19:53:48 +0000 (19:53 +0000)
commit9a17ea82c58089d892fd2270c2e7adc74e29b5c7
treee7a5a6cd1612fffb42b2607598d986c798267c9d
parent2653c76102c93df822fe84e159e079d20f0bf19c
Fix uninitialized ExtensionDefinition for openconfig-version

The StatementDefinition for openconfig-version extension is
not bound to any revision. When populating the ExtensionNamespace
with openconfig-version, we have to store it with a revisionless
QName key. This way we can properly extract the corresponding
ExtensionDefinition later down the road in the
UnknownEffectiveStatementBase.

This issue causes NPE in MDSAL's binding generator v2.

Change-Id: Ie24c09b56986c87b5118d715ec6c8e755cf07ebe
Signed-off-by: Igor Foltin <igor.foltin@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/ExtensionStatementImpl.java