-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in Branding Panel for maven project #4084
Comments
I just tried to replicate this bug on Linux with 14rc3 and oracle jdk 17, and got the branding panel ok, after a notification that some netbeans dependencies were downloading. |
thanks for trying on linux maybe an issue with windows. |
Verified: this happens on Windows, on a brand new Maven/NetBeans installation. I get this exception...
... but once all Maven artifacts are downloaded (and after one minute or so?), and with this exception in between:
The branding panel does indeed open. After that opening the branding panel does open everytime normally, without delay. |
Oh, I just realized I did a build of everything first, before testing the panel mainly out of habit. |
changing to NB15 as it's not reproductible |
I had a quick look and it seems the exception traces back to Lines 61 to 63 in c07fe19
which was added in #3551 I am not familiar with the code but it looks like BrandingModel::getIconSource could legitimately return null for some of the listed sizes, which will cause TreeMap's merge function to throw the NPE. (ref here)So I think you need to implement this a bit differently to filter out any null icons that are returned by the branding model. |
maybe because I run NetBeans on jdk 17 ? |
I think what I said before was right but maybe not the root cause. From reading #3544 (comment) it looks like the path I also am using Windows 11 & JDK 17. I tried on Debian 11/JDK 11 and did not see the issue. |
closing as I cannot reproduce maybe incoherent artefact on my local repository |
Apache NetBeans version
Apache NetBeans latest daily build
What happened
I was trying to use branding in Maven NetBeans platform on NetBeans 14 rc3
On branding artetfact right click on branding
Should open a branding panel but a NPE happens
How to reproduce
To generate a example:
File -> new project
Java with Maven -> NetBeans Applications
Select RELEASE130 for version
wait until project created the select the branding artefact. Right click on it and click on branding.
Did this work correctly in an earlier version?
No
Operating System
Windows 11
JDK
jdk 17
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
It was a long time I didn't use the branding. I'm not sure how old the issue is.
I'm not sure I can propose a PR for this having issue to understand the intention of the stream and map collectors.
Are you willing to submit a pull request?
No
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: