yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=3adc9e02922e665d746676ec5e61213e3fd0b1bc

commit 3adc9e02922e665d746676ec5e61213e3fd0b1bc
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Wed Mar 25 17:58:18 2015 +0200

    Fix crash
    
    Default(not set by user) property's item has NULL pointer.
---
 src/bin/egui_gui/propview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/egui_gui/propview.c b/src/bin/egui_gui/propview.c
index 38e1292..271f9f6 100644
--- a/src/bin/egui_gui/propview.c
+++ b/src/bin/egui_gui/propview.c
@@ -430,7 +430,7 @@ propview_item_selected_set(const Op_Desc *op_desc)
           continue;
 
         It_Data *it_data = elm_object_item_data_get(it);
-        if (prop_op_desc_get(it_data->prop) == op_desc)
+        if ((it_data->prop) && (prop_op_desc_get(it_data->prop) == op_desc))
           {
              elm_genlist_item_selected_set(it, EINA_TRUE);
              elm_genlist_item_bring_in(it, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);

-- 


Reply via email to