Fix a trivial bug in generateNullCheck.

This commit is contained in:
Maaartin Grajcar committed 2014-06-01 07:40:44 +02:00
1 parent 8f7c2aa7a2
commit 6159508d40
1 file changed
+1 -1
@@ -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];