aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/PKG.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/eclipse/handlers/PKG.java')
-rw-r--r--src/lombok/eclipse/handlers/PKG.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lombok/eclipse/handlers/PKG.java b/src/lombok/eclipse/handlers/PKG.java
index 65145262..1d5c6ae1 100644
--- a/src/lombok/eclipse/handlers/PKG.java
+++ b/src/lombok/eclipse/handlers/PKG.java
@@ -162,6 +162,8 @@ class PKG {
node = node.up();
}
+ if (node == null) return null;
+
if (node.get() instanceof TypeDeclaration) {
for (AbstractMethodDeclaration def : ((TypeDeclaration)node.get()).methods) {
if (def instanceof ConstructorDeclaration) {
@@ -180,6 +182,8 @@ class PKG {
node = node.up();
}
+ if (node == null) return null;
+
if (node.get() instanceof TypeDeclaration) {
for (AbstractMethodDeclaration def : ((TypeDeclaration)node.get()).methods) {
char[] mName = def.selector;