From: Christian Dywan Date: Thu, 17 Nov 2011 23:55:19 +0000 (+0100) Subject: An extension_init returning NULL is no test error X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532fa299d479a69a7be7f683cc9e5f0f9296e732;p=midori An extension_init returning NULL is no test error --- diff --git a/tests/extensions.c b/tests/extensions.c index 16a4848d..22b6853a 100644 --- a/tests/extensions.c +++ b/tests/extensions.c @@ -168,6 +168,8 @@ extension_activate (gconstpointer data) { MidoriApp* app = midori_app_new (); MidoriExtension* extension = MIDORI_EXTENSION (data); + if (extension == NULL) + return; g_object_set (app, "settings", midori_web_settings_new (), NULL); g_signal_emit_by_name (extension, "activate", app); midori_extension_deactivate (extension);