Selaa lähdekoodia

[debug] setlogger cannot be null

Exilon 4 vuotta sitten
vanhempi
commit
010ce060c0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;