From bd5771eb59063f0c43bfb1c2b28d3c10ebd57646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 10 Nov 2013 11:22:29 +0000 Subject: [PATCH] handle empty sequence of clauses --- C/index.c | 1 + 1 file changed, 1 insertion(+) diff --git a/C/index.c b/C/index.c index aeb1083ce..c3ced70e6 100755 --- a/C/index.c +++ b/C/index.c @@ -6241,6 +6241,7 @@ Yap_FollowIndexingCode(PredEntry *ap, yamop *ipc, Term Terms[3], yamop *ap_pc, y LogUpdIndex *cl = ipc->u.Illss.I; PredEntry *ap = cl->ClPred; + if (!cl) return NULL; /* in case the index is empty */ if (ap->LastCallOfPred != LUCALL_EXEC) { /* only increment time stamp if we are working on current time