mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
[bugfix] NPEs in TypeResolver (due to recent refactor of how TR works)
This commit is contained in:
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user