Thanks, Gunther, now fixed. I think it can potentially occur for any direct reference to access an item in a sequence beyond the last one.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Rademacher, Gunther
Sent: 13 October 2007 15:16
To: saxon-help@lists.sourceforge.net
Subject: [saxon] NPE in net.sf.saxon.tinytree.FollowingEnumeration.next

After switching to Saxon 8.9.9.2, I have received a NullPointerException
with positioned access beyond the end of the "following" axis, e.g as in

        <a><b/></a>/*/following::*[2]

Best regards,
Gunther


Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany, – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/ Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), David Broadbent, Mark Edwards, Dr. Peter Kürpick, David Mitchell, Arnd Zinnhardt; - Aufsichtsratsvorsitzender/ Chairman of the Supervisory Board: Frank F. Beelitz - http://www.softwareag.com