fix NPE when importing directory into gnunet-fs-gtk
authorChristian Grothoff <christian@grothoff.org>
Wed, 21 Aug 2019 08:56:50 +0000 (10:56 +0200)
committerChristian Grothoff <christian@grothoff.org>
Wed, 21 Aug 2019 08:56:50 +0000 (10:56 +0200)
src/fs/fs_search.c

index 0571a2b3f3aed706bd71ac902afe5616aecf1351..e1546201335472157aec2940eeb7b1e1535d62e4 100644 (file)
@@ -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;
 }