mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
Added null-check to prevent errors in eclipse when working on incomplete files
This commit is contained in:
1 parent
05a156deaa
commit
3e7bb145d3
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user