Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2282

xsltfile in CommandLineOptions is not initialized when dump configuration with -xml option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      xsltfile in CommandLineOptions is not initialized when dump configuration with -xml option

      I run the command as follows:

      java org.apache.fop.cli.Main --dump-config -xml input.xml
      I got NullPointerException

      The code below deference xsltfile while xsltfile is not initialized.

      case XSLT_INPUT:
      log.info("xslt transformation");
      if (isInputFromStdIn())

      { log.info("xml input file: from stdin"); }

      else

      { log.info("xml input file: " + xmlfile.toString()); }

      log.info("xslt stylesheet: " + xsltfile.toString());
      break;

      Attachments

        Activity

          People

            Unassigned Unassigned
            lionghosthop Leo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: