eo: Fix unnecessary ERR logs with eo_debug
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 03:25:19 +0000 (12:25 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 03:30:36 +0000 (12:30 +0900)
commit902938f626adde50c7b14a800e87c92a79f72a78
tree3e816ca5c23fb0a361f97d36dcbc826c3ff1abd8
parent6bed255fc4bbe1b30c960339e8dda2fc6e7925cd
eo: Fix unnecessary ERR logs with eo_debug

efl_data_scope_safe_get() is often used to assert that an object is of a
certain type, but assuming it may be NULL or not of the required type.
This means that encountering an invalid type is an error handled by the
caller (we return NULL), and shouldn't print out extra ERR() logs.

This fixes issues with E run under eo_debug. E's code was safe as it's
using evas_object_smart_data_get() and verifies whether the returned
value is NULL (which is expected for a rectangle, for instance).

@fix
src/lib/eo/eo.c