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

MarkupBuilder throws NPE if element content or attribute values are null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-1
    • 1.5.2
    • XML Processing
    • None
    • Patch

    Description

      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)
      }

      Attachments

        1. GROOVY-1684.patch
          3 kB
          Peter Ledbrook

        Activity

          People

            paulk Paul King
            pledbrook Peter Ledbrook
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: