Bug 216895 - NPE found in .log while running ClasspathTests
Summary: NPE found in .log while running ClasspathTests
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-29 07:28 EST by Jerome Lanneluc CLA
Modified: 2008-02-05 09:04 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix and regression test (3.71 KB, patch)
2008-01-29 11:32 EST, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2008-01-29 07:28:40 EST
I20080129-0800

After running the ClasspathTests, I found several NPEs in the junit workspace's .log file. 

E.g.

java.lang.NullPointerException
	at java.util.AbstractCollection.addAll(AbstractCollection.java:316)
	at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1856)
	at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:390)
	at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:282)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:276)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
	at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
	at org.eclipse.core.internal.resources.Resource.delete(Resource.java:724)
	at org.eclipse.core.internal.resources.Project.delete(Project.java:318)
	at org.eclipse.jdt.core.tests.util.Util.delete(Util.java:369)
	at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.deleteResource(AbstractJavaModelTests.java:1477)
	at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.deleteProject(AbstractJavaModelTests.java:1446)
	at org.eclipse.jdt.core.tests.model.ClasspathTests.testNoResourceChange01(ClasspathTests.java:3379)
Comment 1 Jerome Lanneluc CLA 2008-01-29 07:29:31 EST
Note that the tests are passing though.
Comment 2 Jerome Lanneluc CLA 2008-01-29 11:32:51 EST
Created attachment 88149 [details]
Proposed fix and regression test
Comment 3 Jerome Lanneluc CLA 2008-01-29 13:03:07 EST
Fix and test released for 3.4M5
Comment 4 David Audel CLA 2008-02-05 09:04:54 EST
Verified for 3.4M5 using build I20080204-0010.