aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorMaaartin Grajcar <grajcar@seznam.cz>2014-06-01 07:39:52 +0200
committerMaaartin Grajcar <grajcar@seznam.cz>2014-06-01 07:40:44 +0200
commit6159508d40ed2a79bae98ea4a7f24edc4af36d88 (patch)
tree633a630baa585f72a3dce4197582fce106d4872f /src/core/lombok/eclipse
parent8f7c2aa7a21141097f0a076d0f93dba633a94cf5 (diff)
downloadlombok-6159508d40ed2a79bae98ea4a7f24edc4af36d88.tar.gz
lombok-6159508d40ed2a79bae98ea4a7f24edc4af36d88.tar.bz2
lombok-6159508d40ed2a79bae98ea4a7f24edc4af36d88.zip
Fix a trivial bug in generateNullCheck.
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
index c5135802..11f31c9d 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -1425,7 +1425,7 @@ public class EclipseHandlerUtil {
if (isPrimitive(variable.type)) return null;
AllocationExpression exception = new AllocationExpression();
setGeneratedBy(exception, source);
- int partCount = 0;
+ int partCount = 1;
String exceptionTypeStr = exceptionType.getExceptionType();
for (int i = 0; i < exceptionTypeStr.length(); i++) if (exceptionTypeStr.charAt(i) == '.') partCount++;
long[] ps = new long[partCount];