diff options
author | Roel Spilker <r.spilker@gmail.com> | 2012-01-23 23:10:56 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2012-01-23 23:10:56 +0100 |
commit | 3e7bb145d3984d7472baa177ead3baf574d42e6b (patch) | |
tree | bc423c6e67d14b0e63a297adbc1ffdc93e327cb6 | |
parent | 05a156deaa719895aa7c57f65cc5c35fe9d3a32c (diff) | |
download | lombok-3e7bb145d3984d7472baa177ead3baf574d42e6b.tar.gz lombok-3e7bb145d3984d7472baa177ead3baf574d42e6b.tar.bz2 lombok-3e7bb145d3984d7472baa177ead3baf574d42e6b.zip |
Added null-check to prevent errors in eclipse when working on incomplete files
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index e510d37b..31ec52f4 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -281,6 +281,7 @@ public class PatchDelegate { List<BindingTuple> methodsToDelegateForThisAnn = new ArrayList<BindingTuple>(); if (rawTypes.isEmpty()) { + if (method.returnType == null) continue; addAllMethodBindings(methodsToDelegateForThisAnn, method.returnType.resolveType(decl.initializerScope), banList, method.selector, ann); } else { for (ClassLiteralAccess cla : rawTypes) { |