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:
@@ -1329,7 +1329,7 @@ Private Sub _ConsoleRefresh()
|
||||
' Do nothing if console inactive
|
||||
If IsNull(.ConsoleDialog) Then GoTo Finally
|
||||
If Not .ConsoleDialog._IsStillAlive(False) Then ' 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
|
||||
|
||||
Reference in New Issue
Block a user