Change-Id: I35e26d2f283f5434b8db5f1e82ca6573e3ca6cdc
new_offer = wl_resource_get_user_data(offer_res);
e_comp_wl->drag_offer = new_offer;
- _e_comp_wl_data_offer_update_action(new_offer);
- if (wl_resource_get_version(offer_res) >= WL_DATA_OFFER_SOURCE_ACTIONS_SINCE_VERSION)
- wl_data_offer_send_source_actions(offer_res, new_offer->source->dnd_actions);
+ if (new_offer)
+ {
+ _e_comp_wl_data_offer_update_action(new_offer);
+ if (wl_resource_get_version(offer_res) >= WL_DATA_OFFER_SOURCE_ACTIONS_SINCE_VERSION)
+ wl_data_offer_send_source_actions(offer_res, new_offer->source->dnd_actions);
+ }
}
e_comp_wl->selection.target = ec;