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

Fix possible NPE in NexusRepositoryIndexerImpl exception handler. #4705

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

mbien
Copy link
Member

@mbien mbien commented Sep 30, 2022

fixes #4701

exception handler expected the message of the IOException to be not null. Curious what that exception was.

->

java.lang.NullPointerException
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:586)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.lambda$indexRepo$6(NexusRepositoryIndexerImpl.java:663)
	at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
	at org.openide.util.Mutex.writeAccess(Mutex.java:252)
	at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:657)
	at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42)
	at org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

@mbien mbien added kind:bug Bug report or fix Maven [ci] enable "build tools" tests labels Sep 30, 2022
@mbien mbien added this to the NB16 milestone Sep 30, 2022
@ebarboni
Copy link
Contributor

lets merge on green

@ebarboni ebarboni merged commit 62a9953 into apache:master Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix Maven [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE at startup Maven indexer
2 participants