From f5b73f62c209d6f3db223dd48db75af76fe77ac2 Mon Sep 17 00:00:00 2001 From: Edouard Tisserant Date: Wed, 25 Nov 2015 14:18:15 +0100 Subject: [PATCH] Fixed NULL blobs --- src/jniutils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jniutils.cc b/src/jniutils.cc index 985c153..52169b5 100644 --- a/src/jniutils.cc +++ b/src/jniutils.cc @@ -478,7 +478,8 @@ namespace pEp { bloblist_t *_bl; for (_bl = bl; _bl && _bl->value; _bl = _bl->next) { jobject o = _from_blob(env, _bl); - callBooleanMethod(env, obj, "add", o); + if(o) + callBooleanMethod(env, obj, "add", o); } return obj;