Explorar o código

[debug] setlogger cannot be null

Exilon %!s(int64=4) %!d(string=hai) anos
pai
achega
010ce060c0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Quick.Debug.Utils.pas

+ 1 - 0
Quick.Debug.Utils.pas

@@ -198,6 +198,7 @@ end;
 
 class procedure TDebugger.SetLogger(aLogger: ILogger);
 begin
+  if aLogger = nil then raise Exception.Create('Debugger logger cannot be nil!');
   fLogger := aLogger;
   fShowTime := False;
 end;