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

NPE from classes that extend AbstractMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1-beta-2
    • 1.1-beta-2
    • None
    • None

    Description

      A NullPointerException is being thrown from custom subclasses of AbstractMap in the following scenario:

      1) Class does not override Object get(Object key)
      2) Method is called that uses a closure that references a class variable, instance variable, or property of the class

      The attached test file duplicates the problem.

      Attachments

        1. WeirdNPETest.groovy
          0.3 kB
          Eric McIntyre

        Activity

          People

            blackdrag Jochen Theodorou
            cybermac912 Eric McIntyre
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: