Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.0
Description
When given a null receiver object, line 51 of org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite may produce a NullPointerException when trying to invoke java.lang.Object#getClass.
It seems that the commented-out if statement on line 50 handles this case by checking the receiver object with instanceof.
Although if fixed, a NullPointerException will eventually be thrown by the NullCallSite object when trying to access a property of the null object, the exception thrown by NullCallSite is much more descriptive.