Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.1-beta-3
-
Fix Version/s: 1.1-rc-1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Error is:
java.lang.NullPointerException
at org.codehaus.groovy.runtime.MetaClassHelper.isValidMethod(MetaClassHelper.java:678)
at org.codehaus.groovy.runtime.MetaClassHelper.isValidMethod(MetaClassHelper.java:708)
at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:2146)
at groovy.lang.MetaClassImpl.getMethodWithoutCaching(MetaClassImpl.java:857)
at groovy.lang.MetaClassImpl.getMethodWithCaching(MetaClassImpl.java:803)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:623)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:936)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:602)
at groovy.lang.Closure.call(Closure.java:293)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod.invoke(ClosureMetaMethod.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
its basically the paramTypes object is null
CachedClass[] paramTypes = pt.getParameterTypes();
if ((size >= paramTypes.length || size == paramTypes.length - 1)
pt.getParameterTypes returns null
boom NPE
Fixed by Alex.
Don't you have a JIRA account, so that we can assign issues to you?