[MDSAL-133] Augmenting a choice without a case from another module causes NPE Created: 04/Mar/16 Updated: 09/Mar/18 Resolved: 03/May/16 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Lori Jakab | Assignee: | Filip Gregor |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5461 |
| Description |
|
I tried to add the following grouping to odl-lisp-proto.yang (https://git.opendaylight.org/gerrit/gitweb?p=lispflowmapping.git;a=blob;f=mappingservice/lisp-proto/src/main/yang/odl-lisp-proto.yang;h=58bf372611c9937ec6c9a373966a3c8275f548a4;hb=HEAD): grouping augmented-lisp-address { } I'm not saying that what I'm trying to do is correct, but I recall Robert saying that a NPE is generally a bug, so here's the resulting trace, when building: [INFO] yang-to-sources: Sources will be generated to /Users/lojakab/src/opendaylight/lispflowmapping/mappingservice/lisp-proto/target/generated-sources/mdsal-binding |
| Comments |
| Comment by Martin Ciglan [ 07/Mar/16 ] |
|
Hi Could you confirm this is Lithium code base? Thank you |
| Comment by Lori Jakab [ 07/Mar/16 ] |
|
I haven't checked Lithium, but it happens to me in the current master (Boron). |
| Comment by Martin Ciglan [ 07/Mar/16 ] |
|
Thanks for additional info, I will re-check this use case and let you know. |
| Comment by Lori Jakab [ 07/Mar/16 ] |
|
Hmm, I just tried wrapping the leaf in a 'case', but it doesn't help... I get a slightly different trace though: [ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator |
| Comment by Martin Ciglan [ 07/Mar/16 ] |
|
Thank you for your feedback, we will have to look into it and let you know. |
| Comment by Filip Gregor [ 16/Mar/16 ] |
|
Proposed fix https://git.opendaylight.org/gerrit/#/c/36249/ |
| Comment by Lori Jakab [ 26/Apr/16 ] |
|
(In reply to Filip Gregor from comment #6) Patch set 4 fixes the bug. |
| Comment by Robert Varga [ 03/May/16 ] |
| Comment by Lori Jakab [ 03/May/16 ] |
|
Thanks everyone! |