You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Abhijeet Singh (Jira)" <ji...@apache.org> on 2024/01/09 05:21:00 UTC

[jira] [Commented] (XALANJ-2720) tranform function in TransformerIdentityImpl resetting content handler

    [ 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 [~keshlam@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-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org