compiler/ide/autocomplete: Fixed an IDE crash when autocompleting OnKeyHit( from...
authorJerome St-Louis <jerome@ecere.com>
Mon, 4 Mar 2013 07:37:38 +0000 (02:37 -0500)
committerJerome St-Louis <jerome@ecere.com>
Mon, 4 Mar 2013 07:37:38 +0000 (02:37 -0500)
compiler/bootstrap/libec/bootstrap/pass15.c
compiler/libec/src/pass15.ec

index 9e80dfd..bb946ee 100644 (file)
@@ -13280,7 +13280,7 @@ struct Location oldyylloc = yylloc;
 
 if(!type)
 emptyParams = 0x1;
-if(functionType->extraParam && e)
+if(functionType->extraParam && e && functionType->thisClass)
 {
 e->destType = MkClassType(functionType->thisClass->string);
 e = e->next;
index c719b7d..6472a4c 100644 (file)
@@ -8691,7 +8691,7 @@ void ProcessExpressionType(Expression exp)
             if(!type) emptyParams = true;
 
             // WORKING ON THIS:
-            if(functionType.extraParam && e)
+            if(functionType.extraParam && e && functionType.thisClass)
             {
                e.destType = MkClassType(functionType.thisClass.string);
                e = e.next;