cedric pushed a commit to branch master.

commit 9a637112b42b91f6b739ab1addce6902b123921a
Author: Cedric Bail <[email protected]>
Date:   Mon Aug 12 08:55:36 2013 +0900

    edje: let's make a difference between file does not exist and no file 
specified.
---
 src/lib/edje/edje_smart.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index b692a5a..1e2775b 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -338,7 +338,15 @@ _edje_smart_file_set(Eo *obj, void *_pd EINA_UNUSED, 
va_list *list)
 
    if (ret) *ret = EINA_FALSE;
 
-   f = eina_file_open(file, EINA_FALSE);
+   if (file)
+     {
+        f = eina_file_open(file, EINA_FALSE);
+        if (!f) 
+          {
+             ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
+             return ;
+          }
+     }
    nested = eina_array_new(8);
 
    if (_edje_object_file_set_internal(obj, f, group, NULL, NULL, nested))

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to