I'm using Eclipse Mars with Lombok 1.16.6 and lombok throws the following exception when compiling:
Internal compiler error: java.lang.NullPointerException at lombok.eclipse.agent.PatchDelegate.addAllMethodBindings0(PatchDelegate.java:702)
Foo.java /project/src/foo/line 0 Java Problem
binding.scope is null there and because of that Eclipse throws a nullpointer from lombok when compiling.
Can you back up the claim that on that line ((SourceTypeBinding) binding).scope is null? The constructor would not have completed for a null scope, and I could not find any evidence that it is set to null later.
I'm getting the same issue. I put a breakpoint and I can see scope is null. The binding is a SourceBinding for a class that is used as a delegate from another class. The stack of the JVM is attached.
I've added a fix, but have not been able to reproduce the problem myself. Can someone give the latest edge release a try?
Potential solution for issue #913
I've update the edge release, can someone give it a try?
I tested with the edge release and didn't see the error. I also confirmed that the error was occurring with the 1.16.8 release which doesn't include this fix.
Thanks for the confirmation. We'll probably ship a new version this week.