diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2021-03-21 05:12:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 05:12:12 +0100 |
commit | e9e16a355f9f83e85291fa895ad944411606b1d6 (patch) | |
tree | 8c233853ec39760af3b9794f810c3a7682266ee2 /src/core | |
parent | 38faf6d350d0e4749039538bdc201624cd2f1ecb (diff) | |
parent | 14f861b5f1c49d9ccc2eb0cda088753e6b63d349 (diff) | |
download | lombok-e9e16a355f9f83e85291fa895ad944411606b1d6.tar.gz lombok-e9e16a355f9f83e85291fa895ad944411606b1d6.tar.bz2 lombok-e9e16a355f9f83e85291fa895ad944411606b1d6.zip |
Merge pull request #2772 from janrieke/superBuilderNPEwithSingular
[fixes #2701] fix NPE on customized SuperBuilder with Singular
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleSuperBuilder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilder.java b/src/core/lombok/javac/handlers/HandleSuperBuilder.java index a083adb9..17b54f3c 100644 --- a/src/core/lombok/javac/handlers/HandleSuperBuilder.java +++ b/src/core/lombok/javac/handlers/HandleSuperBuilder.java @@ -302,7 +302,7 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> { if (sd == null) continue; JavacSingularizer singularizer = sd.getSingularizer(); if (singularizer == null) continue; - if (singularizer.checkForAlreadyExistingNodesAndGenerateError(job.builderType, sd)) { + if (singularizer.checkForAlreadyExistingNodesAndGenerateError(job.builderAbstractType, sd)) { bfd.singularData = null; } } |