Project

Profile

Help

Bug #2195

closed

NullPointerException in com.saxonica.pull.TreeWalker

Added by Michael Kay about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
Start date:
2014-10-22
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

Gunther Rademacher reports on the saxon-help list:

I have a piece of code that worked with Saxon-EE 9.5, but throws a NPE with 9.6. It

uses PullToStax and TreeWalker to get Stax events from a DOM source.

A complete reproduction is shown below.

In the actual application, different types of sources are mapped to Stax events, for

peeking at some initial fragment of those sources. PullToStax came in handy to

accomplish this for DOM sources. I might of course implement that differently.

Concerning PullToStax and TreeWalker, I am not sure whether they are considered

part of the official API. I may also be misusing them in some way. Should I possibly

give up this approach?

Please register to edit this issue

Also available in: Atom PDF