Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.8.2, 1.8.3, 1.8.4, 1.8.5
-
None
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.