summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-08-21 10:56:50 +0200
committerChristian Grothoff <christian@grothoff.org>2019-08-21 10:56:50 +0200
commit055557c76220a94f46975565caaf99ba41c0f67a (patch)
tree7adc7db24b416e17e1b62b3f65ccae53b0e7dc36 /src
parent1c987d24785f7e612925a9f36da05272a9099c90 (diff)
fix NPE when importing directory into gnunet-fs-gtk
Diffstat (limited to 'src')
-rw-r--r--src/fs/fs_search.c3
1 files changed, 2 insertions, 1 deletions
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;
}