diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 460494a0..b82abafc 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -477,6 +477,8 @@ midori_browser_update_history_title (MidoriBrowser* browser, sqlite3* db; static sqlite3_stmt* stmt = NULL; + g_return_if_fail (katze_item_get_uri (item) != NULL); + db = g_object_get_data (G_OBJECT (browser->history), "db"); if (!stmt) { @@ -5347,6 +5349,8 @@ midori_browser_new_history_item (MidoriBrowser* browser, sqlite3* db; static sqlite3_stmt* stmt = NULL; + g_return_if_fail (katze_item_get_uri (item) != NULL); + now = time (NULL); katze_item_set_added (item, now); day = sokoke_time_t_to_julian (&now);