Bug #2251
closed
NullReferenceException when transforming to TextWriterDestination [Saxon-HE 9.6.0.3]
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Files
Aww crap, wrong button and submitted an empty report :(
Anyways, performing an in-memory transformation into a TextWriterDestination causes a NullReferenceException inside transformer.Run (see the attached code sample).
This seems to work when changing it to a NullDestination or a Serializer with output stream, so it must have something to do with the TextWriterDestination.
The attached sample should work with any XSLT (i used an identity transform to transform itself).
- Status changed from New to In Progress
- Assignee set to O'Neil Delpratt
- Priority changed from Low to Normal
- Found in version changed from 9.6.0.3 to 9.6
Thanks for reporting the issue you have found. Investigating it now
It seems that the root cause to the NPE is the failure to set the pipelineConfiguration in the method GetReceiver of the class TextWriterDestination. Later in the transform a call is made on the pipelineConfiguration, which has not be set on the DotNetReceiver, therefore NPE is thrown.
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Bug fixed and committed to subversion. Change made to Destination.cs
The patch will be available in the next maintenance release.
Create test case with the C# code provided in the Saxon9.6 Nunit test suite.
Test Case: TestTextWriterDestination() in the test set TestXsltTransformer.cs
- Fixed in version set to 9.6.0.4
Bug fix applied in the Saxon 9.6.0.4 maintenance release.
- Status changed from Resolved to Closed
- Sprint/Milestone set to 9.6.0.4
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.4 added
- Sprint/Milestone changed from 9.6.0.4 to 9.6.0.3
- Fixed in Maintenance Release 9.6.0.3 added
- Fixed in Maintenance Release deleted (
9.6.0.4)
- Sprint/Milestone changed from 9.6.0.3 to 9.6.0.4
- Fixed in Maintenance Release 9.6.0.4 added
- Fixed in Maintenance Release deleted (
9.6.0.3)
Please register to edit this issue
Also available in: Atom
PDF