Fop
  1. Fop
  2. FOP-2065

[PATCH] fop test.fo -print throws exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: general
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      53248

      Description

      The command "fop xslfo.fo -print" throws the exception:

      C:\>fop xslfo.fo -print
      May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
      SEVERE: Exception
      java.lang.ArrayIndexOutOfBoundsException: 2
      at
      org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
      ineOptions.java:559)
      at
      org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
      .java:325)
      at
      org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
      62)
      at org.apache.fop.cli.Main.startFOP(Main.java:158)
      at org.apache.fop.cli.Main.main(Main.java:205)

      Note that the command is valid according to "fop -print help".

      This minor patch fixes the issue and includes a simple unit test.

      1. fop_print.patch
        3 kB
        Luis Bernardo

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            fop-dev
            Reporter:
            Luis Bernardo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development