ecore-wl2: handle null global has in ecore_wl2_display_globals_get()

This commit is contained in:
Mike Blumenkrantz 2015-12-04 18:59:49 -05:00
parent 3a8cfeb6d6
commit 022dda2f68
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ EAPI Eina_Iterator *
ecore_wl2_display_globals_get(Ecore_Wl2_Display *display)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
return eina_hash_iterator_data_new(display->globals);
return display->globals ? eina_hash_iterator_data_new(display->globals) : NULL;
}
EAPI void