compiler/libec: Fixed crash overriding OnRedraw() in a WindowController
authorJerome St-Louis <jerome@ecere.com>
Sun, 10 Apr 2016 07:48:58 +0000 (03:48 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 16 Jul 2016 22:17:51 +0000 (18:17 -0400)
compiler/libec/src/pass1.ec

index 7c0f957..1a18f44 100644 (file)
@@ -115,7 +115,7 @@ External ProcessClassFunction(Class owningClass, ClassFunction func, OldList def
                      type.byReference = method.dataType.byReference;
 
                      methodDataType = ProcessTypeString(method.dataTypeString, false);
-                     type.thisClass = methodDataType.thisClass = arg ? FindClass(arg->dataTypeString) : null;
+                     type.thisClass = methodDataType.thisClass = (arg && arg->dataTypeString) ? FindClass(arg->dataTypeString) : null;
                   }
                }
                else if(method.dataType.staticMethod)