Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1976

[PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.9, 2.1.10
    • 2.1.11, 2.2
    • Blocks: POI
    • None
    • Normal
    • Patch available

    Description

      When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.

      This issue is solved by the attached patch.txt

      Attachments

        1. patch.txt
          2 kB
          Rob Berens

        Activity

          People

            joerg.heinicke@gmx.de Jörg Heinicke
            rberens@osirion.nl Rob Berens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: