Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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.