mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
Fix a trivial bug in generateNullCheck.
This commit is contained in:
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];
|
||||
|
||||
Reference in new issue
Block a user