summaryrefslogtreecommitdiff
path: root/libcaja-extension/caja-menu-provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-extension/caja-menu-provider.c')
-rw-r--r--libcaja-extension/caja-menu-provider.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcaja-extension/caja-menu-provider.c b/libcaja-extension/caja-menu-provider.c
index 0c47dd13..7198b8c3 100644
--- a/libcaja-extension/caja-menu-provider.c
+++ b/libcaja-extension/caja-menu-provider.c
@@ -115,7 +115,10 @@ caja_menu_provider_get_background_items (CajaMenuProvider *provider,
GtkWidget *window,
CajaFileInfo *current_folder)
{
- g_return_val_if_fail (CAJA_IS_MENU_PROVIDER (provider), NULL);
+ if (!CAJA_IS_MENU_PROVIDER (provider)) {
+ return NULL;
+ }
+
g_return_val_if_fail (CAJA_IS_FILE_INFO (current_folder), NULL);
if (CAJA_MENU_PROVIDER_GET_IFACE (provider)->get_background_items)