aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-04-14 23:15:50 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2020-04-15 09:22:01 +0200
commitd34fdeb3b4b44aae8c03cee0d3b1dd35a3d74e31 (patch)
tree415b43be65bc8c3e4164cfbe0f66083aef2275ee /src/core/lombok
parent94440a8bd73f176637a9890dc10df67d26615674 (diff)
downloadlombok-d34fdeb3b4b44aae8c03cee0d3b1dd35a3d74e31.tar.gz
lombok-d34fdeb3b4b44aae8c03cee0d3b1dd35a3d74e31.tar.bz2
lombok-d34fdeb3b4b44aae8c03cee0d3b1dd35a3d74e31.zip
[fixes #2246] Add null check
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java8
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]);
+ }
}
}