diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-08-21 10:59:05 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-08-21 10:59:05 +0200 |
commit | 5d20d260f347c3f65333849b21aa62c88edef3df (patch) | |
tree | 48f8252724c3f02133a67c50734ec11e2f859267 | |
parent | cebdba420e3f8b3a37abc0ec24841e74cf56d203 (diff) | |
download | gnunet-gtk-5d20d260f347c3f65333849b21aa62c88edef3df.tar.gz gnunet-gtk-5d20d260f347c3f65333849b21aa62c88edef3df.zip |
fix NPE when importing directory into gnunet-fs-gtk (cleaner fix)
-rw-r--r-- | src/fs/gnunet-fs-gtk_event-handler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c index 14b8fee8..1f65672f 100644 --- a/src/fs/gnunet-fs-gtk_event-handler.c +++ b/src/fs/gnunet-fs-gtk_event-handler.c | |||
@@ -2411,7 +2411,8 @@ GNUNET_GTK_add_search_result (struct SearchTab *tab, | |||
2411 | 2411 | ||
2412 | sr = GNUNET_new (struct SearchResult); | 2412 | sr = GNUNET_new (struct SearchResult); |
2413 | sr->result = result; | 2413 | sr->result = result; |
2414 | if (NULL == result) | 2414 | if ( (NULL == result) && |
2415 | (NULL != uri) ) | ||
2415 | { | 2416 | { |
2416 | sr->probe = GNUNET_FS_probe (GNUNET_FS_GTK_get_fs_handle (), | 2417 | sr->probe = GNUNET_FS_probe (GNUNET_FS_GTK_get_fs_handle (), |
2417 | uri, | 2418 | uri, |