For example, an xpath query expression of $example causes a panic when calling QueryAll. As far as I can tell, this is an invalid query expression. I'd expect getQuery to return an error when compiling, but instead it looks like it produces an Expr object with a nil query field.
For example, an xpath query expression of
$example
causes a panic when callingQueryAll
. As far as I can tell, this is an invalid query expression. I'd expectgetQuery
to return an error when compiling, but instead it looks like it produces anExpr
object with a nilquery
field.Minimum unit test to reproduce:
Edit: just realised this is probably a problem with the xpath package. Should I raise there instead?