data tree BUGFIX dereferencing NULL pointer
diff --git a/src/resolve.c b/src/resolve.c
index 42354f2..b2c7334 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -568,7 +568,7 @@
     parsed += ret;
     id += ret;
 
-    if (id[0] == '[') {
+    if (id[0] == '[' && has_predicate) {
         *has_predicate = 1;
     }