Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.8.2, 1.8.3, 1.8.4, 1.8.5
-
Fix Version/s: 1.8.6, 2.0-beta-3
-
Component/s: primtive opts
-
Labels:None
-
Number of attachments :
Description
the program
def proceed(){}
def checkResponse() {return null}
Integer responseCode = checkResponse()
if (responseCode == 200) {1.8.4 running in Grails 2.0.0
proceed()
}
fails with a NPE in the == operation because it tries to unbox the response code, where it should have instead boxed the constant to do the dynamic compare.
fixed