From 055557c76220a94f46975565caaf99ba41c0f67a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 21 Aug 2019 10:56:50 +0200 Subject: [PATCH] fix NPE when importing directory into gnunet-fs-gtk --- src/fs/fs_search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.25.1