summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-extension/caja-location-widget-provider.c1
1 files changed, 1 insertions, 0 deletions
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);