aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-09-25 01:20:39 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-09-25 01:21:08 +0200
commit8e7851034738d2cd2a7dbbb3810cd063ebac292a (patch)
tree887d2e97b28a031f4d177da547e078c4e8aa4fa8 /src
parenta0c17d87a5216a030fda2b60f4ddfbcd2a790cc5 (diff)
downloadlombok-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.java2
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);