Bug 228528 - NPE when interrupting the build
Summary: NPE when interrupting the build
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 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-23 17:24 EDT by Olivier Thomann CLA
Modified: 2008-04-29 11:16 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.88 KB, patch)
2008-04-24 13:55 EDT, Kent Johnson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2008-04-23 17:24:12 EDT
I cancelled a build and I got:
Exception in thread "Compiler Processing Task" java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.acceptResult(AbstractImageBuilder.java:123)
	at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:579)
	at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:138)
	at java.lang.Thread.run(Thread.java:619)

Hope this is enough to understand what is going on. No further steps to reproduce.
Comment 1 Kent Johnson CLA 2008-04-24 13:55:20 EDT
Created attachment 97496 [details]
Proposed patch
Comment 2 Kent Johnson CLA 2008-04-24 13:58:55 EDT
To verify, build a decent size workspace & cancel the build half way thru.

Without the patch, it should fail 1 in 5-10 builds.
Comment 3 David Audel CLA 2008-04-29 11:16:09 EDT
Verified for 3.4M7 using I20080427-2000