Bug #2120
closedNullPointerException if there's no license key
100%
Description
I run a small XSLT 3.0 stylesheet using SaxonEE9-5-1-6J.
If I install my license key everything is working just fine. But, if NO license key is installed i get the following error:
java.lang.NullPointerException
stack:
com.saxonica.config.ProfessionalConfiguration.loadLicense(ProfessionalConfiguration.java:391)
com.saxonica.config.ProfessionalConfiguration.isLicensedFeature(ProfessionalConfiguration.java:367)
com.saxonica.config.ProfessionalConfiguration.makeStyleNodeFactory(ProfessionalConfiguration.java:504)
net.sf.saxon.PreparedStylesheet.(PreparedStylesheet.java:87)
net.sf.saxon.PreparedStylesheet.compile(PreparedStylesheet.java:113)
net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:330)
Any ideas why I get a NullPointerException instead of a 'normal' execption? Is this a bug in Saxon?
Here's my Java code:
Configuration configuration = new com.saxonica.config.ProfessionalConfiguration();
Processor processor = new Processor(configuration);
XsltCompiler compiler = processor.newXsltCompiler();
XsltExecutable executable = compiler.compile(...);
Thank you.
Related issues
Please register to edit this issue