[vala] vala: check for null parent symbol



commit fa93dbe75dad9b0714111638b138be45bf25f54c
Author: Corentin Noël <corentin elementary io>
Date:   Thu Jan 14 16:19:05 2016 +0100

    vala: check for null parent symbol

 vala/valadelegatetype.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valadelegatetype.vala b/vala/valadelegatetype.vala
index 704f98c..11ba57f 100644
--- a/vala/valadelegatetype.vala
+++ b/vala/valadelegatetype.vala
@@ -51,7 +51,7 @@ public class Vala.DelegateType : DataType {
                // logic temporarily duplicated from DataType class
 
                Symbol global_symbol = delegate_symbol;
-               while (global_symbol.parent_symbol.name != null) {
+               while (global_symbol.parent_symbol != null && global_symbol.parent_symbol.name != null) {
                        global_symbol = global_symbol.parent_symbol;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]