Community
Participate
Working Groups
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 org.asp ... AutoBuildJob.run(AutoBuildJob.java:238) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Compile error: NullPointerException thrown: null
Created attachment 120295 [details] Aspect causing the exception
I get this exception every time I rebuild the project in Eclipse. It is unclear whether this is related to some error in the asepct (one of the methods being called does not exist in this example), or a true bug. Assuming it is due to a syntax error I would expect a much more helpful error message.
Are you on AspectJ 1.6.2 as it says in the bug report? This looks like bug 251940 which is already fixed in AspectJ 1.6.3 dev builds, please update. A NullPointerException is never a sign of intended behaviour, so yes you should be setting a better error if it is a syntax error.
I believe I fixed all code paths that could lead to this NPE during 1.6.3 development. Please reopen if you see it again on a recent build.