Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-324

Simple ODF is throwing an exception with the attached file

    XMLWordPrintableJSON

Details

    Description

      Simple odf is throwing an exception with the attached file, I have been testing with other files and only the attached file is throwing the following exception.

      Any idea?

      Thanks for your help

      This is the exception:

      Jul 18, 2012 2:18:42 PM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfElement
      INFO: None-ODF element created for xforms:instance
      Jul 18, 2012 2:18:42 PM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfElement
      INFO: None-ODF element created for instance
      Jul 18, 2012 2:18:42 PM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfElement
      INFO: None-ODF element created for xsd:schema
      Exception in thread "main" java.lang.NullPointerException
      at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:181)
      at org.odftoolkit.odfdom.pkg.OdfElement.accept(OdfElement.java:513)
      at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
      at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
      at org.odftoolkit.odfdom.pkg.OdfElement.accept(OdfElement.java:513)
      at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
      at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
      at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:5421)
      at org.odftoolkit.odfdom.dom.element.xforms.XformsModelElement.accept(XformsModelElement.java:68)
      at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
      at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
      at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:2525)
      at org.odftoolkit.odfdom.dom.element.office.OfficeFormsElement.accept(OfficeFormsElement.java:140)
      at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
      at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
      at org.odftoolkit.simple.common.TextExtractor.getText(TextExtractor.java:150)
      at org.odftoolkit.simple.common.TextExtractor.getText(TextExtractor.java:129)

      Attachments

        1. thisDocumentIsNotWorking.odt
          19 kB
          Vicente Villegas Larios
        2. testcase-fix-ODFTOOLKIT-324.patch
          2 kB
          Florian Hopf

        Activity

          People

            fhopf Florian Hopf
            cei37 Vicente Villegas Larios
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: