aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-12-31 11:00:49 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-12-31 11:00:49 +0100
commit983d487b59d3fc30c19fa9bd1ab472468c0958d1 (patch)
tree9037310277dbfd0030646149a2e855afd50f7476
parentfb1d6c0f0dfafcd889cac8906246803349c353f2 (diff)
downloadlombok-983d487b59d3fc30c19fa9bd1ab472468c0958d1.tar.gz
lombok-983d487b59d3fc30c19fa9bd1ab472468c0958d1.tar.bz2
lombok-983d487b59d3fc30c19fa9bd1ab472468c0958d1.zip
Starting eclipse with an open file containing an enum with @Getter on it would cause 1 error log entry to show up. No other effects other than that, but thats ugly and so thats been fixed.
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
index 64eaa7e2..860cf44f 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -298,6 +298,8 @@ public class EclipseHandlerUtil {
if (declaration.initialization instanceof AllocationExpression &&
((AllocationExpression)declaration.initialization).enumConstant != null) return false;
+ if (declaration.type == null) return false;
+
// Skip fields that start with $
if (declaration.name.length > 0 && declaration.name[0] == '$') return false;