diff options
author | Roel Spilker <r.spilker@gmail.com> | 2016-06-29 00:26:54 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2016-06-29 00:36:50 +0200 |
commit | 0a2ed8197aa0a02249371f04cce7366b5e6b27a2 (patch) | |
tree | 257e798e314e1d7369cd2b8bb57bdec6942d0e48 | |
parent | b3ae90b273d7d926626546c367f7fbe6d25a6890 (diff) | |
download | lombok-0a2ed8197aa0a02249371f04cce7366b5e6b27a2.tar.gz lombok-0a2ed8197aa0a02249371f04cce7366b5e6b27a2.tar.bz2 lombok-0a2ed8197aa0a02249371f04cce7366b5e6b27a2.zip |
Potential solution for issue #913
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index 3a4e22c5..02760e35 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -701,8 +701,7 @@ public class PatchDelegate { private static void addAllMethodBindings0(List<BindingTuple> list, TypeBinding binding, Set<String> banList, char[] fieldName, ASTNode responsible) throws DelegateRecursion { if (binding instanceof SourceTypeBinding) { ClassScope scope = ((SourceTypeBinding) binding).scope; - if (scope == null) return; - scope.environment().globalOptions.storeAnnotations = true; + if (scope != null) scope.environment().globalOptions.storeAnnotations = true; } if (binding == null) return; |