groovy
  1. groovy
  2. GROOVY-5165

ASTNode#removeNodeMetaData may nullify metaData field

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 2.0-beta-1
    • Fix Version/s: 1.8.5, 2.0-beta-2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The org.codehaus.groovy.ast.ASTNode#removeNodeMetaData method nullifies the metadata field if the map is empty after removal. However, the map is not supposed to be null, which will cause a NPE if you try to add metadata afterwards.

        Activity

          People

          • Assignee:
            CÚdric Champeau
            Reporter:
            CÚdric Champeau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: