From 9be8cd4afdc2f12e6b6b26776f3ea6ccf79621c1 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 28 Nov 2017 23:43:19 +0100 Subject: bugfix for delomboking source that does not compile; it should just emit compiler errors, not stack traces. --- src/core/lombok/javac/JavacResolution.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/lombok') 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); -- cgit