aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/handlers
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-03 16:01:14 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-03 16:01:14 +0200
commitcf594564bed778fe4d73f32ae5865cf20290f360 (patch)
tree541f255e4bd3557eb14b5768493160ff2f7199a3 /src/lombok/javac/handlers
parentc3e4ed5d78718b6c0aeb0ceabfa984e2ee2800ae (diff)
downloadlombok-cf594564bed778fe4d73f32ae5865cf20290f360.tar.gz
lombok-cf594564bed778fe4d73f32ae5865cf20290f360.tar.bz2
lombok-cf594564bed778fe4d73f32ae5865cf20290f360.zip
Fine-tuning eclipse's error reporting found some minor issues and even 1 bug that would show up rarely or not at all.
Diffstat (limited to 'src/lombok/javac/handlers')
-rw-r--r--src/lombok/javac/handlers/HandleData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/javac/handlers/HandleData.java b/src/lombok/javac/handlers/HandleData.java
index ddd9755c..5da08759 100644
--- a/src/lombok/javac/handlers/HandleData.java
+++ b/src/lombok/javac/handlers/HandleData.java
@@ -43,7 +43,7 @@ public class HandleData implements JavacAnnotationHandler<Data> {
Node typeNode = annotationNode.up();
JCClassDecl typeDecl = null;
if ( typeNode.get() instanceof JCClassDecl ) typeDecl = (JCClassDecl)typeNode.get();
- long flags = typeDecl.mods.flags;
+ long flags = typeDecl == null ? 0 : typeDecl.mods.flags;
boolean notAClass = (flags & (Flags.INTERFACE | Flags.ENUM | Flags.ANNOTATION)) != 0;
if ( typeDecl == null || notAClass ) {