Grails
  1. Grails
  2. GRAILS-8749

Comparing a null Integer value with integer literal results in NPE in unit tests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 final
    • Fix Version/s: 2.0.1
    • Component/s: Testing
    • Labels:
      None

      Description

      Run the unit tests in the attached bug report to see the failure. It appears to be an issue in Groovy that only kicks in when EMC.enableGlobally() is not active. Hence the same code is fine in the Testy controller's index action.

        Activity

        Hide
        Graeme Rocher added a comment -

        Fixed by upgrading to 1.8.6 snapshot:

        https://github.com/grails/grails-core/commit/4df07ae3dcc7fc635fc81246ba65fa23f827d681

        Will need to upgrade to 1.8.6 final before release

        Show
        Graeme Rocher added a comment - Fixed by upgrading to 1.8.6 snapshot: https://github.com/grails/grails-core/commit/4df07ae3dcc7fc635fc81246ba65fa23f827d681 Will need to upgrade to 1.8.6 final before release

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Peter Ledbrook
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development