History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1684
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Peter Ledbrook
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

MarkupBuilder throws NPE if element content or attribute values are null

Created: 30/Jan/07 08:12 AM   Updated: 08/Feb/08 01:26 AM
Component/s: XML Processing
Affects Version/s: 1.1-beta-1
Fix Version/s: 1.5.2

Time Tracking:
Not Specified

File Attachments: 1. Text File GROOVY-1684.patch (3 kb)


Testcase included: yes


 Description  « Hide
def b = new MarkupBuilder()
b.bug(){
element(null)
}

The above code fragment throws an NPE, as does:

def b = new MarkupBuilder()
b.bug(){
element(t1:null)
}



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Peter Ledbrook - 30/Jan/07 08:14 AM
Patch to MarkupBuilder and its unit test.

Paul King - 12/Jan/08 06:31 AM
Added. Thanks for the patch.

Paul King - 08/Feb/08 01:26 AM
close off release 1.5.4