Closed galdor closed 8 years ago
In node/dom.go, *XMLNode.NextSibling() uses XMLNextSibling(), but does not check that the returned uintptr is different from 0 before calling WrapNode(), resulting in a panic when the node has no next sibling.
node/dom.go
*XMLNode.NextSibling()
XMLNextSibling()
uintptr
0
WrapNode()
In
node/dom.go
,*XMLNode.NextSibling()
usesXMLNextSibling()
, but does not check that the returneduintptr
is different from0
before callingWrapNode()
, resulting in a panic when the node has no next sibling.