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

NullPointerException from typo hides all ZIP exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6.2-incubating
    • odfdom
    • None

    Description

      In SVN trunk, org.odftoolkit.odfdom.pkg.ZipHelpder.entriesToMap() has an exception handler that calls System.getProperty("Java.version") which will return null as it's supposed to be "java.version" (lowercase), and then compares it to "1.5.0" with equals(), and calling equals() on a null reproducibly generates an NPE.

      This was already reported as one of the problems in ODFTOOLKIT-353 and still is not fixed.

      Attachments

        1. ziphelper-npe.patch
          0.8 kB
          Damjan Jovanovic

        Activity

          People

            svanteschubert Svante Schubert
            damjan Damjan Jovanovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: