diff options
author | Jan Rieke <rieke@subshell.com> | 2021-03-12 09:55:44 +0100 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2021-03-12 09:55:44 +0100 |
commit | 26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43 (patch) | |
tree | 3375d5625d4b75483648292d0aaef5c915ea3441 /src/core | |
parent | f8c16ed8ac69d0106a845ca96573557700b6f39d (diff) | |
download | lombok-26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43.tar.gz lombok-26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43.tar.bz2 lombok-26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43.zip |
[fixes #2704] SuperBuilder: avoid NPE on existing constructors
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSuperBuilder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java index d9c8946f..870b1ac1 100644 --- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java +++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java @@ -1206,7 +1206,7 @@ public class HandleSuperBuilder extends EclipseAnnotationHandler<SuperBuilder> { if ((def.bits & ASTNode.IsDefaultConstructor) != 0) continue; if (!def.isConstructor()) continue; if (isTolerate(type, def)) continue; - if (def.arguments.length != 1) continue; + if (def.arguments == null || def.arguments.length != 1) continue; // Cannot use typeMatches() here, because the parameter could be fully-qualified, partially-qualified, or not qualified. // A string-compare of the last part should work. If it's a false-positive, users could still @Tolerate it. |