From: Christian Grothoff Date: Wed, 21 Aug 2019 08:56:50 +0000 (+0200) Subject: fix NPE when importing directory into gnunet-fs-gtk X-Git-Tag: v0.11.7~180 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=055557c76220a94f46975565caaf99ba41c0f67a;p=oweals%2Fgnunet.git fix NPE when importing directory into gnunet-fs-gtk --- diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 0571a2b3f..e15462013 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c @@ -495,7 +495,8 @@ GNUNET_FS_probe (struct GNUNET_FS_Handle *h, sr->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); sr->client_info = client_info; sr->anonymity = anonymity; - GNUNET_FS_search_start_probe_ (sr); + if (NULL != uri) + GNUNET_FS_search_start_probe_ (sr); return sr; }