Project

Profile

Help

Bug #3835

Updated by Michael Kay over 6 years ago

Saving a compiled XSL generates a NullPointerException : 

 ~~~ 
 Caused by: java.lang.NullPointerException 
     at net.sf.saxon.trans.rules.Rule.export (Rule.java:164) 
     at net.sf.saxon.trans.SimpleMode$5.processRule (SimpleMode.java:1051) 
     at net.sf.saxon.trans.SimpleMode.processRuleChain (SimpleMode.java:1153) 
     at net.sf.saxon.trans.SimpleMode.processRules (SimpleMode.java:1085) 
     at net.sf.saxon.trans.SimpleMode.processRules (SimpleMode.java:1067) 
     at net.sf.saxon.trans.SimpleMode.exportTemplateRules (SimpleMode.java:1056) 
     at com.saxonica.ee.trans.ModeEE.exportTemplateRules (ModeEE.java:302) 
     at net.sf.saxon.trans.Mode.export (Mode.java:578) 
     at net.sf.saxon.expr.Component.export (Component.java:205) 
     at com.saxonica.ee.trans.StylesheetPackageEE.export (StylesheetPackageEE.java:104) 
     at com.saxonica.ee.trans.StylesheetPackageEE.export (StylesheetPackageEE.java:43) 
     at net.sf.saxon.s9api.XsltExecutable.export (XsltExecutable.java:147) 
     at net.sf.saxon.s9api.XsltExecutable.export (XsltExecutable.java:124) 
 ~~~ 

 Project is quite complex, but is made available to reproduce problem. See pom.xml:40 where the xsl to compile is defined. It is src/main/xsl/sas/dalloz/ouvrages/ouvragesDalloz2editorialEntity.xsl. 

 Complete Java code is available here : https://github.com/cmarchand/xslCompiler-maven-plugin/blob/master/src/main/java/top/marchand/xml/maven/plugin/xsl/AbstractCompiler.java row 95 

 This problem was first exposed on Saxon mailing list : https://saxon.markmail.org/search/?q=#query:%20list%3Anet.sourceforge.lists.saxon-help+page:2+mid:3fwkboxydrvwasi3+state:results

Back