From 54302390fc59a898dec1d4aad5daa84ff73059d1 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 23 Aug 2016 21:12:00 +0300 Subject: libcaja-extension: don't call get_widget if it's NULL --- libcaja-extension/caja-location-widget-provider.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libcaja-extension') diff --git a/libcaja-extension/caja-location-widget-provider.c b/libcaja-extension/caja-location-widget-provider.c index aebf870f..8e9038bb 100644 --- a/libcaja-extension/caja-location-widget-provider.c +++ b/libcaja-extension/caja-location-widget-provider.c @@ -83,6 +83,7 @@ caja_location_widget_provider_get_widget (CajaLocationWidgetProvider *provider, GtkWidget *window) { g_return_val_if_fail (CAJA_IS_LOCATION_WIDGET_PROVIDER (provider), NULL); + g_return_val_if_fail (CAJA_LOCATION_WIDGET_PROVIDER_GET_IFACE (provider)->get_widget != NULL, NULL); return CAJA_LOCATION_WIDGET_PROVIDER_GET_IFACE (provider)->get_widget (provider, uri, window); -- cgit v1.2.1