elm_photocam: add NULL check
@fix
Reviewers: woohyun, jaehwan, eunue
Change-Id: I2f95e6b60644a624da896d4f7728f11d44b1d027
Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>
elm_photocam_file_set(Elm_Photocam *obj, const char *file)
{
Eina_Bool ret;
+
+ ELM_PHOTOCAM_CHECK(obj) EVAS_LOAD_ERROR_NONE;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(file, EVAS_LOAD_ERROR_NONE);
if (eo_do_ret(obj, ret, efl_file_set(file, NULL))) return EVAS_LOAD_ERROR_NONE;
Eina_Error err = eina_error_get();