Bug 464994 - NullPointerException during first weaving
Summary: NullPointerException during first weaving
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.5   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-20 06:17 EDT by Dada Hsu CLA
Modified: 2015-04-23 15:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dada Hsu CLA 2015-04-20 06:17:23 EDT
Hi, all
I always get a exception when Eclipse auto-build after cleaning all projects.
But if I touch the file and save it, the triggered auto-build is always  successful.

--
java.lang.NullPointerException
at org.aspectj.ajdt.internal.core.builder.EclipseSourceContext.getSourceFile(EclipseSourceContext.java:49)
at org.aspectj.ajdt.internal.core.builder.EclipseSourceContext.makeSourceLocation(EclipseSourceContext.java:57)
at org.aspectj.weaver.bcel.BcelShadow.getSourceLocation(BcelShadow.java:3390)
at org.aspectj.weaver.model.AsmRelationshipProvider.findOrCreateCodeNode(AsmRelationshipProvider.java:950)

--
It really bothers me.
Comment 1 Andrew Clement CLA 2015-04-23 15:30:28 EDT
I'd need to recreate this to dig into it - is it by any a public project? Can you trim down your project to a smaller one that exhibits the same problem?  I can stick in a guard but it will likely have unexpected consequences.  Compilation results shouldn't forget the source file they came from.