forked from enlightenment/enlightenment
Let's at least check for NULL pointer.
SVN revision: 41145
This commit is contained in:
parent
de260634f1
commit
c00f5c9b06
|
@ -237,6 +237,12 @@ e_object_error(E_Object *obj)
|
|||
e_error_message_show("%s", buf);
|
||||
return 1;
|
||||
#else
|
||||
if (!obj)
|
||||
{
|
||||
fprintf(stderr, "ERROR: Object is NULL. Add break point at %s:%d\n",
|
||||
__FILE__, __LINE__);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue