diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
commit | bd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (patch) | |
tree | aef91399af0bef930dd18acb8bf0bb0f4817557e /src/lombok/eclipse/handlers/PKG.java | |
parent | 56616f3bec6d8eda8c2bcf0550490f0098fb7fed (diff) | |
parent | 1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (diff) | |
download | lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.gz lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.bz2 lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.zip |
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/lombok/eclipse/handlers/PKG.java')
-rw-r--r-- | src/lombok/eclipse/handlers/PKG.java | 4 |
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; |