[yelp] Don't try to search with NULL URI, bug #655124



commit 9243b978cf984b11be3695e4f9cc6dbbe57efb68
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Jul 22 10:50:32 2011 -0400

    Don't try to search with NULL URI, bug #655124

 libyelp/yelp-location-entry.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-location-entry.c b/libyelp/yelp-location-entry.c
index 493dab2..a7ebfa9 100644
--- a/libyelp/yelp-location-entry.c
+++ b/libyelp/yelp-location-entry.c
@@ -622,6 +622,8 @@ location_entry_search_activated  (YelpLocationEntry *entry)
     YelpLocationEntryPrivate *priv = GET_PRIV (entry);
 
     g_object_get (priv->view, "yelp-uri", &base, NULL);
+    if (base == NULL)
+        return;
     uri = yelp_uri_new_search (base,
                                gtk_entry_get_text (GTK_ENTRY (priv->text_entry)));
     g_object_unref (base);



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