diff options
| author | monsta <[email protected]> | 2016-08-23 21:12:00 +0300 | 
|---|---|---|
| committer | monsta <[email protected]> | 2016-08-23 21:12:00 +0300 | 
| commit | 54302390fc59a898dec1d4aad5daa84ff73059d1 (patch) | |
| tree | 2bbcd01b66907e89cddd62c2f83a81abbccf9e83 | |
| parent | 79c4312462e705cd4ee0dae7ce84949306e67fff (diff) | |
| download | caja-54302390fc59a898dec1d4aad5daa84ff73059d1.tar.bz2 caja-54302390fc59a898dec1d4aad5daa84ff73059d1.tar.xz | |
libcaja-extension: don't call get_widget if it's NULL
| -rw-r--r-- | libcaja-extension/caja-location-widget-provider.c | 1 | 
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); | 
