xpath BUGFIX null dereference
diff --git a/src/xpath.c b/src/xpath.c
index da661a9..23fae94 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -7202,7 +7202,7 @@
                print_token(exp->tokens[*exp_idx]), exp->tok_pos[*exp_idx]);
         ++(*exp_idx);
 
-        if (exp_check_token(set->ctx, exp, *exp_idx, LYXP_TOKEN_NONE, 0)) {
+        if (exp_check_token(set ? set->ctx : NULL, exp, *exp_idx, LYXP_TOKEN_NONE, 0)) {
             return LY_SUCCESS;
         }
         switch (exp->tokens[*exp_idx]) {