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

[PATCH] regression in validator command line handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7-incubating, 0.6.2-incubating
    • 0.6.2-incubating
    • validator
    • Patch

    Description

      this simple invocation fails:

      java -jar .m2/repository/org/apache/odftoolkit/odfvalidator/1.2.0-incubating-SNAPSHOT/odfvalidator-1.2.0-incubating-SNAPSHOT-jar-with-dependencies.jar foo.odt

      Exception in thread "main" java.lang.NullPointerException
      at org.odftoolkit.odfvalidator.ODFValidator.getValidatorForSchema(ODFValidator.java:288)
      at org.odftoolkit.odfvalidator.ODFValidator.getManifestValidator(ODFValidator.java:186)
      at org.odftoolkit.odfvalidator.ODFRootPackageValidator.validateManifest(ODFRootPackageValidator.java:170)
      at org.odftoolkit.odfvalidator.ODFRootPackageValidator.validatePre(ODFRootPackageValidator.java:93)
      at org.odftoolkit.odfvalidator.ODFPackageValidator._validate(ODFPackageValidator.java:111)
      at org.odftoolkit.odfvalidator.ODFPackageValidator.validate(ODFPackageValidator.java:81)
      at org.odftoolkit.odfvalidator.ODFValidator.validateFile(ODFValidator.java:163)
      at org.odftoolkit.odfvalidator.ODFValidator.validate(ODFValidator.java:125)
      at org.odftoolkit.odfvalidator.Main.main(Main.java:294)

      because of commit https://svn-master.apache.org/repos/asf/incubator/odf/trunk@1759341
      #ODFTOOLKIT-437# ODFValidator: make schema files configurable from cmd line

      Attachments

        Activity

          People

            svanteschubert Svante Schubert
            mistmist Michael Stahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: