[ https://issues.apache.org/jira/browse/XALANJ-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17804578#comment-17804578 ]
Abhijeet Singh commented on XALANJ-2720: ---------------------------------------- Hi [~kesh...@alum.mit.edu] , Sorry for the delayed response. I'll attach a simple sample which gives the error in the new version but worked in the older version(pre & post the change mentioned). [^TestTransformer.java] > tranform function in TransformerIdentityImpl resetting content handler > ---------------------------------------------------------------------- > > Key: XALANJ-2720 > URL: https://issues.apache.org/jira/browse/XALANJ-2720 > Project: XalanJ2 > Issue Type: Bug > Security Level: No security risk; visible to anyone(Ordinary problems in > Xalan projects. Anybody can view the issue.) > Components: SAX > Reporter: Abhijeet Singh > Assignee: Gary D. Gregory > Priority: Critical > Attachments: TestTransformer.java > > > In the commit: > [https://github.com/apache/xalan-java/commit/b03ee965878f7cc62d4ae8a8d9dd0a28acf01fab] > changes were made to reset the content handler to the old content handler > after doing the parse operation while earlier the ContentHandler was set to > TransformerIdentityImpl permanently in the tranform(Source, Result) function, > this is because the setting old content handler is being done in the finally > block. > I am getting a null pointer exception for content handler now as it was > automatically set to Tansformer IdentityImpl. > Is this intended behaviour? If not please provide a new release with the fix. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org