gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet-gtk] branch master updated: fix NPE when importing


From: gnunet
Subject: [GNUnet-SVN] [gnunet-gtk] branch master updated: fix NPE when importing directory into gnunet-fs-gtk (cleaner fix)
Date: Wed, 21 Aug 2019 11:00:43 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet-gtk.

The following commit(s) were added to refs/heads/master by this push:
     new 5d20d260 fix NPE when importing directory into gnunet-fs-gtk (cleaner 
fix)
5d20d260 is described below

commit 5d20d260f347c3f65333849b21aa62c88edef3df
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Aug 21 10:59:05 2019 +0200

    fix NPE when importing directory into gnunet-fs-gtk (cleaner fix)
---
 src/fs/gnunet-fs-gtk_event-handler.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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,
 
   sr = GNUNET_new (struct SearchResult);
   sr->result = result;
-  if (NULL == result)
+  if ( (NULL == result) &&
+       (NULL != uri) )
   {
     sr->probe = GNUNET_FS_probe (GNUNET_FS_GTK_get_fs_handle (),
                                  uri,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]