From 24ca8d66b89bdf6ee092b122142e4247ebe28be5 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Mon, 4 Mar 2013 02:37:38 -0500 Subject: [PATCH] compiler/ide/autocomplete: Fixed an IDE crash when autocompleting OnKeyHit( from within a timer's DelayExpired in a WindowController --- compiler/bootstrap/libec/bootstrap/pass15.c | 2 +- compiler/libec/src/pass15.ec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/bootstrap/libec/bootstrap/pass15.c b/compiler/bootstrap/libec/bootstrap/pass15.c index 9e80dfd..bb946ee 100644 --- a/compiler/bootstrap/libec/bootstrap/pass15.c +++ b/compiler/bootstrap/libec/bootstrap/pass15.c @@ -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; diff --git a/compiler/libec/src/pass15.ec b/compiler/libec/src/pass15.ec index c719b7d..6472a4c 100644 --- a/compiler/libec/src/pass15.ec +++ b/compiler/libec/src/pass15.ec @@ -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; -- 1.8.3.1