compiler/ecp: Fixed null pointer crash on missing identifier declarator
authorJerome St-Louis <jerome@ecere.com>
Mon, 29 Jul 2013 09:05:59 +0000 (05:05 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 29 Jul 2013 09:05:59 +0000 (05:05 -0400)
compiler/ecp/ecp.ec

index 38e399b..f2b3e33 100644 (file)
@@ -160,10 +160,10 @@ static void AddDefinitions(ClassDefine classDefine, DataMemberDefine parentMembe
                {
                   for(d = decl.declarators->first; d; d = d.next)
                   {
+                     Identifier declId = GetDeclId(d);
                      //if(d.type != DeclaratorFunction)
+                     if(declId)
                      {
-                        Identifier declId = GetDeclId(d);
-
                         dataMemberDefine = DataMemberDefine 
                         {
                            isProperty = MemberType::dataMember;