Bug 576520 - NPE in Index.query(Index.java:152) on deleting project
Summary: NPE in Index.query(Index.java:152) on deleting project
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.21   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 4.22 M3   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-10-08 04:46 EDT by Gabriele Pezzini CLA
Modified: 2021-10-28 06:53 EDT (History)
3 users (show)

See Also:


Attachments
Eclipse debug call stack and eclipse error log (267.82 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-10-08 04:46 EDT, Gabriele Pezzini CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriele Pezzini CLA 2021-10-08 04:46:07 EDT
Created attachment 287281 [details]
Eclipse debug call stack and eclipse error log

This error happens while my plugin is running.

My plugin performs these steps

- creates a java project
- performs its task
- deletes the java project created below

It seems to me which the error occurs during the
delete of the java project.

The exception is:
java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.index.Index.query(Index.java:152)
	at org.eclipse.jdt.internal.core.index.Index.getMetaIndexQualifications(Index.java:243)
	at org.eclipse.jdt.internal.core.search.indexing.IndexManager$MetaIndexUpdateRequest.execute(IndexManager.java:1772)
	at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:432)
	at java.base/java.lang.Thread.run(Thread.java:834)
Comment 1 Gabriele Pezzini CLA 2021-10-08 04:49:43 EDT
Note which in the previous version of Eclipse using the same plugin does not happes
Comment 2 Eclipse Genie CLA 2021-10-08 11:33:47 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/186310
Comment 4 Andrey Loskutov CLA 2021-10-23 10:57:44 EDT
(In reply to Eclipse Genie from comment #3)
> Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/186310 was
> merged to [master].
> Commit:
> http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/
> ?id=437144de085992ac398c6582dce05c16b64324db

@Gabrielle: would be nice if you could check if this nightly build (or any later one) fixes the problem:

https://download.eclipse.org/eclipse/downloads/drops4/I20211022-1800

If not, please provide new stack trace.
Comment 5 Gabriele Pezzini CLA 2021-10-28 05:16:36 EDT
Hi,
I have tested using the suggested build and the error does not comes.

Thanks.
Comment 6 Andrey Loskutov CLA 2021-10-28 06:53:23 EDT
(In reply to Gabriele Pezzini from comment #5)
> Hi,
> I have tested using the suggested build and the error does not comes.
> 
> Thanks.

Thanks Gabriele for validaton!