[MNG-6819] Fix NullPointerException in StringVisitorModelInterpolator$ModelVisitor#301
[MNG-6819] Fix NullPointerException in StringVisitorModelInterpolator$ModelVisitor#301da-liii wants to merge 3 commits intoapache:masterfrom
Conversation
|
This would require an JIRA issue because you have found an obvious bug. How did you find it? |
|
Is this NPE a blocker? @michael-o |
we can branch off 3.6.x. |
|
I have attached the stack trace. Sorry for the rush pull request, since it is Friday night. I tried to write a reproducer but failed for several attempts. |
|
I have my doubt that this is the bug. I would love to see a failing test first. |
|
yes, it's bug - simple pom.xml to reproduce the problem locally |
|
Can you make a unittest for it? |
|
I've also run into this issue when I added an xtext dependency to my build. It seems to be having troubles resolving transitive dependencies. |
|
easy null check. Thanks for that! |
|
Any reason why this was not back-ported to 3.8.x? Also this change only guards |
3.8.x will be assessed after 4.0.0-alpha-1. |
Please leave a note in the ticket. |
|
Resolve #8649 |
Desc
Here is a clue to reproduce the NPE.
project.build.finalNameis the previous value, and the interpolated value is null.Fix NullPointerException.
null is not allowed as a Hashtable value.
Checklist
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MNG-XXX] - Fixes bug in ApproximateQuantiles,where you replace
MNG-XXXwith the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verifyto make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.