aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-11-28 23:43:19 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-11-29 04:06:23 +0100
commit9be8cd4afdc2f12e6b6b26776f3ea6ccf79621c1 (patch)
tree769a47aa71d6b943f8c828139ca2e95a36e3f064 /src/core/lombok
parent2d5ae0d920d1f602e15d9430f3650c946ad2cdfe (diff)
downloadlombok-9be8cd4afdc2f12e6b6b26776f3ea6ccf79621c1.tar.gz
lombok-9be8cd4afdc2f12e6b6b26776f3ea6ccf79621c1.tar.bz2
lombok-9be8cd4afdc2f12e6b6b26776f3ea6ccf79621c1.zip
bugfix for delomboking source that does not compile; it should just emit compiler errors, not stack traces.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/javac/JavacResolution.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/javac/JavacResolution.java b/src/core/lombok/javac/JavacResolution.java
index 67dbaac6..0b6e1341 100644
--- a/src/core/lombok/javac/JavacResolution.java
+++ b/src/core/lombok/javac/JavacResolution.java
@@ -261,6 +261,7 @@ public class JavacResolution {
}
public static Type ifTypeIsIterableToComponent(Type type, JavacAST ast) {
+ if (type == null) return null;
Types types = Types.instance(ast.getContext());
Symtab syms = Symtab.instance(ast.getContext());
Type boundType = ReflectiveAccess.Types_upperBound(types, type);