Bug 256069 - Nullpointer exception thrown when trying to save Aspect with error in it
Summary: Nullpointer exception thrown when trying to save Aspect with error in it
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 1.6.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 02:24 EST by Hermod Opstvedt CLA
Modified: 2009-01-06 19:11 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hermod Opstvedt CLA 2008-11-21 02:24:06 EST
It there is any error that would result in a compiler error (indicated with a red cross in the left column) a NullpointerException is thrown. Stacktrace is:

java.lang.NullPointerException
at org.aspectj.weaver.ReferenceType.isAspect(ReferenceType.java:165)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager$4.acceptResult(AjBuildManager.java:1032)
at org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter.acceptResult(AjPipeliningCompilerAdapter.java:383)
at org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter.afterProcessing(AjPipeliningCompilerAdapter.java:356)
at or ... oBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Compile error: NullPointerException thrown: null

I am using version 1.6.1.20081104192500


Hermod
Comment 1 Hermod Opstvedt CLA 2008-11-21 02:27:12 EST
NPE still remains after errors are corrected. Workaround is to do a Project/clean.
Comment 2 Andrew Clement CLA 2008-11-27 15:15:30 EST
please try a dev build of AspectJ.  I believe this is a duplicate of bug 251940.
Comment 3 Andrew Clement CLA 2009-01-06 19:11:15 EST
believed fixed, please reopen if you see it again on a recent build.