wizards/source/scriptforge/SF_Exception.xba |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e856738f5f0a93fce0cde53cc1235a84494cbe74
Author:     Jean-Pierre Ledure <[email protected]>
AuthorDate: Sun Nov 30 16:34:40 2025 +0100
Commit:     Jean-Pierre Ledure <[email protected]>
CommitDate: Sun Nov 30 18:18:58 2025 +0100

    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 <[email protected]>

diff --git a/wizards/source/scriptforge/SF_Exception.xba 
b/wizards/source/scriptforge/SF_Exception.xba
index 313c70dd4825..3d431c5bd814 100644
--- a/wizards/source/scriptforge/SF_Exception.xba
+++ b/wizards/source/scriptforge/SF_Exception.xba
@@ -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

Reply via email to