[ https://issues.apache.org/jira/browse/XALANJ-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven J. Hathaway reassigned XALANJ-2568: ------------------------------------------ Assignee: (was: Steven J. Hathaway) > TransformerImpl NullPointerException when faulty encoded XSL file > ----------------------------------------------------------------- > > Key: XALANJ-2568 > URL: https://issues.apache.org/jira/browse/XALANJ-2568 > Project: XalanJ2 > Issue Type: Bug > Security Level: No security risk; visible to anyone(Ordinary problems in > Xalan projects. Anybody can view the issue.) > Components: Xalan > Affects Versions: 2.7.1 > Reporter: Sami Suuriniemi > Priority: Minor > > In situation: > String sourceFile = "./transform.xsl"; > TransformerFactory tFac = TransformerFactory.newInstance(); > Transformer transformer = tFac.newTransformer(new StreamSource(sourceFile)); > transformer.setOutputProperty("encoding", "UTF-8"); > If source XSL file has UTF-8 characters in it and the FILE itself is not > encoded UTF-8 it causes a an odd and hard to locate nullpointerexception > java.lang.NullPointerException > at > org.apache.xalan.transformer.TransformerImpl.setOutputProperty(TransformerImpl.java:966) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org