diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-25 01:20:39 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-25 01:21:08 +0200 |
commit | 8e7851034738d2cd2a7dbbb3810cd063ebac292a (patch) | |
tree | 887d2e97b28a031f4d177da547e078c4e8aa4fa8 /src | |
parent | a0c17d87a5216a030fda2b60f4ddfbcd2a790cc5 (diff) | |
download | lombok-8e7851034738d2cd2a7dbbb3810cd063ebac292a.tar.gz lombok-8e7851034738d2cd2a7dbbb3810cd063ebac292a.tar.bz2 lombok-8e7851034738d2cd2a7dbbb3810cd063ebac292a.zip |
[bugfix] NPEs in TypeResolver (due to recent refactor of how TR works)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/core/TypeResolver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/core/TypeResolver.java b/src/core/lombok/core/TypeResolver.java index 3e126123..2c36d1fc 100644 --- a/src/core/lombok/core/TypeResolver.java +++ b/src/core/lombok/core/TypeResolver.java @@ -48,7 +48,7 @@ public class TypeResolver { public String typeRefToFullyQualifiedName(LombokNode<?, ?, ?> context, TypeLibrary library, String typeRef) { // When asking if 'Foo' could possibly be referring to 'bar.Baz', the answer is obviously no. List<String> qualifieds = library.toQualifieds(typeRef); - if (qualifieds.isEmpty()) return null; + if (qualifieds == null || qualifieds.isEmpty()) return null; // When asking if 'lombok.Getter' could possibly be referring to 'lombok.Getter', the answer is obviously yes. if (qualifieds.contains(typeRef)) return LombokInternalAliasing.processAliases(typeRef); |