compiler:libec: fix for null pointer crash. not sure how to reproduce.
authorRejean Loyer <rejean.loyer@gmail.com>
Mon, 17 Oct 2011 19:50:41 +0000 (15:50 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 18 Oct 2011 15:46:00 +0000 (11:46 -0400)
compiler/libec/src/pass15.ec

index e18c684..63be380 100644 (file)
@@ -11953,7 +11953,7 @@ static void ProcessClass(OldList definitions, Symbol symbol)
             Symbol thisSymbol
             {
                string = CopyString("this");
-               type = MkClassType(regClass.fullName);
+               type = regClass ? MkClassType(regClass.fullName) : null;
             };
 
             propertyWatch.compound.compound.context.symbols.Add((BTNode)thisSymbol);