ScriptForge (SF_Exception) fix console error

In the scenario where
- the console is opened in modal mode,
- the console is closed immediately,
- the exception.ConsoleClear() is run,
an abort occurs:
   Object variable not set

Fixed now.

Change-Id: Ib7de836457e77786b0e29a68eaf64e8bd6aa8a0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194846
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
This commit is contained in:
Jean-Pierre Ledure
2025-11-30 18:18:58 +01:00
parent 919b0984ed
commit e856738f5f
+1 -1
View File
@@ -1329,7 +1329,7 @@ Private Sub _ConsoleRefresh()
&apos; Do nothing if console inactive
If IsNull(.ConsoleDialog) Then GoTo Finally
If Not .ConsoleDialog._IsStillAlive(False) Then &apos; False to not generate an error when dead
Set .ConsoleControl = .ConsoleControl.Dispose()
If Not IsNull(.ConsoleControl) Then Set .ConsoleControl = .ConsoleControl.Dispose()
Set .ConsoleDialog = Nothing
GoTo Finally
End If