Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6350

adding two empty lists fails with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.7, 2.2.0-beta-2
    • 2.1.8, 2.2.0-rc-1
    • Static Type Checker
    • None

    Description

      for the expression []+[] the static type checker seems to get confused and fails with a NPE. The checker gets the generics from th list types used here and expects them to exist in a placeholder map, which they do not, and the result is the NPE.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: