summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-07-22 10:50:32 -0400
committerShaun McCance <shaunm@gnome.org>2011-07-22 10:50:32 -0400
commit9243b978cf984b11be3695e4f9cc6dbbe57efb68 (patch)
tree7f1d365a6b2a51f3790128e24bdebcf61aaf8238
parent30dd02a878ce95e10f2e7a310d6c4ca7bf17a645 (diff)
downloadyelp-9243b978cf984b11be3695e4f9cc6dbbe57efb68.tar.gz
Don't try to search with NULL URI, bug #655124
-rw-r--r--libyelp/yelp-location-entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libyelp/yelp-location-entry.c b/libyelp/yelp-location-entry.c
index 493dab25..a7ebfa93 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);