From dcccf3aa85ab5854bf743885eb6cf4cf8242eb0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Wed, 16 Mar 2011 00:15:15 +0000 Subject: [PATCH] catch null access. --- library/dialect/swi/fli/blobs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/dialect/swi/fli/blobs.c b/library/dialect/swi/fli/blobs.c index c122811f4..4dd807231 100644 --- a/library/dialect/swi/fli/blobs.c +++ b/library/dialect/swi/fli/blobs.c @@ -61,7 +61,8 @@ lookupBlob(void *blob, size_t len, PL_blob_t *type) /* just keep a linked chain for now */ ae = SWI_Blobs; while (ae) { - if (RepBlobProp(ae->PropsOfAE)->blob_t == type && + if (ae->PropsOfAE && + RepBlobProp(ae->PropsOfAE)->blob_t == type && ae->rep.blob->length == len && !memcmp(ae->rep.blob->data, blob, len)) return ae;