diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2020-04-17 01:34:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 01:34:30 +0200 |
commit | 9d50e9f8ad16c463b6ff9dbb87fd7a012c68bfef (patch) | |
tree | f08b7027f30361f0b033b1e801b26a7e07f64dc4 /src/core/lombok/eclipse/handlers | |
parent | d4e5eb004066720d235cba7e474af088b6b9ce85 (diff) | |
parent | d34fdeb3b4b44aae8c03cee0d3b1dd35a3d74e31 (diff) | |
download | lombok-9d50e9f8ad16c463b6ff9dbb87fd7a012c68bfef.tar.gz lombok-9d50e9f8ad16c463b6ff9dbb87fd7a012c68bfef.tar.bz2 lombok-9d50e9f8ad16c463b6ff9dbb87fd7a012c68bfef.zip |
Merge pull request #2427 from Rawi01/addNullCheck
Add null check in copyTypeAnns
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r-- | src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java index 4df7a90b..2c6e1e77 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -660,9 +660,11 @@ public class EclipseHandlerUtil { Annotation[][] b = new Annotation[a.length][]; for (int i = 0; i < a.length; i++) { - b[i] = new Annotation[a[i].length]; - for (int j = 0 ; j < a[i].length; j++) { - b[i][j] = copyAnnotation(a[i][j], a[i][j]); + if (a[i] != null) { + b[i] = new Annotation[a[i].length]; + for (int j = 0 ; j < a[i].length; j++) { + b[i][j] = copyAnnotation(a[i][j], a[i][j]); + } } } |