Skip to content
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

changing project group shows an exception in the log #6011

Closed
wumpz opened this issue Jun 2, 2023 · 2 comments · Fixed by #8171
Closed

changing project group shows an exception in the log #6011

wumpz opened this issue Jun 2, 2023 · 2 comments · Fixed by #8171
Labels
Editor kind:bug Bug report or fix

Comments

@wumpz
Copy link
Contributor

wumpz commented Jun 2, 2023

Apache NetBeans version

Apache NetBeans 18

What happened

I changed the project group from one to another and this exception occurred:

java.lang.NullPointerException: Cannot invoke "java.util.Set.add(Object)" because "pwnr" is null
	at org.netbeans.modules.project.ui.ProjectUtilities$1.doClose(ProjectUtilities.java:155)
	at org.netbeans.modules.project.ui.ProjectUtilities$1.close(ProjectUtilities.java:116)
	at org.netbeans.modules.project.ui.ProjectUtilities.closeAllDocuments(ProjectUtilities.java:480)
	at org.netbeans.modules.project.ui.OpenProjectList.close(OpenProjectList.java:923)
	at org.netbeans.modules.project.ui.groups.Group.open(Group.java:586)
	at org.netbeans.modules.project.ui.groups.Group.setActiveGroup(Group.java:180)
	at org.netbeans.modules.project.ui.groups.ManageGroupsPanel$2$1.run(ManageGroupsPanel.java:80)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1419)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2034)

How to reproduce

I don't know. After a restart of Netbeans I am able to switch project groups without this exception.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11

JDK

JDK 17

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

@wumpz wumpz added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Jun 2, 2023
@neilcsmith-net neilcsmith-net removed the needs:triage Requires attention from one of the committers label Jun 2, 2023
@neilcsmith-net
Copy link
Member

Thanks for the report. Have seen this too when testing builds. Should be fine after restart.

@mbien
Copy link
Member

mbien commented Jan 19, 2025

might have found the cause for this by accident. will link the PR with this issue once done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Editor kind:bug Bug report or fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants