]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: check for null parent symbol
authorCorentin Noël <corentin@elementary.io>
Thu, 14 Jan 2016 15:19:05 +0000 (16:19 +0100)
committerBen Iofel <iofelben@gmail.com>
Thu, 28 Jan 2016 22:21:07 +0000 (17:21 -0500)
vala/valadelegatetype.vala

index 704f98c8b4b375d00119148482ea030fa2d1aeab..11ba57f002ec363f1541136056457d4fe7bd3231 100644 (file)
@@ -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;
                }