elementary bg: allow NULL pointers in legacy usage

Summary:
It should not cause crash with NULL parameters.
@fix

Reviewers: woohyun, raster, cedric

Reviewed By: woohyun, raster

Differential Revision: https://phab.enlightenment.org/D5979
This commit is contained in:
Youngbok Shin 2018-04-23 21:24:13 +09:00 committed by Carsten Haitzler (Rasterman)
parent e74ebca670
commit f7826ea1af
1 changed files with 2 additions and 2 deletions

View File

@ -218,8 +218,8 @@ _efl_ui_bg_widget_efl_file_file_get(const Eo *obj, Efl_Ui_Bg_Widget_Data *sd, co
{
if (elm_widget_is_legacy(obj))
{
*file = sd->file;
*key = sd->key;
if (file) *file = sd->file;
if (key) *key = sd->key;
return;
}