comp wl - fix check of source mime types

we dont always assume it's there.

fix CID 1403939
This commit is contained in:
Carsten Haitzler 2019-08-06 18:45:58 +01:00
parent 33ef4bc881
commit 490e532aa3
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ e_comp_wl_data_device_send_enter(E_Client *ec)
d2 = d3 = d4 = 0;
source = e_comp_wl->drag_source;
if (eina_array_count(source->mime_types) > 3)
if ((source->mime_types) && (eina_array_count(source->mime_types) > 3))
{
const char *type, *types[eina_array_count(source->mime_types)];
int i = 0;