Bug #2251
closedNullReferenceException when transforming to TextWriterDestination [Saxon-HE 9.6.0.3]
100%
Files
Updated by Emanuel Wlaschitz about 10 years ago
- File Program.cs Program.cs added
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).
Updated by O'Neil Delpratt about 10 years ago
- 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
Updated by O'Neil Delpratt about 10 years ago
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.
Updated by O'Neil Delpratt about 10 years ago
- 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.
Updated by Community Admin about 10 years ago
Create test case with the C# code provided in the Saxon9.6 Nunit test suite.
Test Case: TestTextWriterDestination() in the test set TestXsltTransformer.cs
Updated by O'Neil Delpratt almost 10 years ago
- Fixed in version set to 9.6.0.4
Bug fix applied in the Saxon 9.6.0.4 maintenance release.
Updated by O'Neil Delpratt almost 10 years ago
- Status changed from Resolved to Closed
Updated by O'Neil Delpratt about 9 years ago
- 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
Updated by O'Neil Delpratt about 9 years ago
- 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)
Updated by O'Neil Delpratt about 9 years ago
- 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