Bug #5694
closed
Using -export without a filename causes an NPE
Applies to branch:
10, 11, trunk
Fix Committed on Branch:
10, 11, trunk
Fixed in Maintenance Release:
Description
Hardly a serious problem, but...
$ saxon -xsl:src/main/xsl/dashboard.xsl -export -nogo -target:JS
----------------------------------------
java.lang.NullPointerException
at java.base/java.io.File.<init>(File.java:278)
at net.sf.saxon.Transform.doTransform(Transform.java:755)
at net.sf.saxon.Transform.main(Transform.java:81)
Fatal error during transformation: java.lang.NullPointerException: (no message)
This can be fixed by changing the relevant entry in Transform.setPermittedOptions() to
options.addRecognizedOption("export", CommandLineOptions.TYPE_FILENAME | CommandLineOptions.VALUE_REQUIRED,
"Display compiled expression tree and optimization decisions for exportation");
It's worth reviewing the list to see if any other options should be similarly marked.
I am adding the VALUE_REQUIRED
flag to export
, scmin
, Tout
, and TP
.
- Category set to Command Line
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Applies to branch 10, 11, trunk added
- Fix Committed on Branch 10, 11, trunk added
- Platforms .NET, Java added
- % Done changed from 0 to 100
- Fixed in Maintenance Release 12.0 added
Bug issue fix applied in the Saxon 12.0 Major Release.
Leaving this bug marked as Resolved until fix applied
- Fixed in Maintenance Release 11.5 added
Bug fix applied in the Saxon 11.5 maintenance release.
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 10.9 added
Bug fix applied in the Saxon 10.9 maintenance release.
Please register to edit this issue
Also available in: Atom
PDF