An extension_init returning NULL is no test error

This commit is contained in:
Christian Dywan 2011-11-18 00:55:19 +01:00
parent 975c244622
commit 532fa299d4

View file

@ -168,6 +168,8 @@ extension_activate (gconstpointer data)
{ {
MidoriApp* app = midori_app_new (); MidoriApp* app = midori_app_new ();
MidoriExtension* extension = MIDORI_EXTENSION (data); MidoriExtension* extension = MIDORI_EXTENSION (data);
if (extension == NULL)
return;
g_object_set (app, "settings", midori_web_settings_new (), NULL); g_object_set (app, "settings", midori_web_settings_new (), NULL);
g_signal_emit_by_name (extension, "activate", app); g_signal_emit_by_name (extension, "activate", app);
midori_extension_deactivate (extension); midori_extension_deactivate (extension);