wizards/source/scriptforge/SF_Session.xba |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit bd640d338b6c8a1a4915c4b88b52ac1cc48f7dd0
Author:     Jean-Pierre Ledure <[email protected]>
AuthorDate: Sun Jul 30 15:03:15 2023 +0200
Commit:     Jean-Pierre Ledure <[email protected]>
CommitDate: Sun Jul 30 18:28:48 2023 +0200

    ScriptForge (SF_Session) fix SendMail() w/o attachment
    
    Fix error message when no attachment
    passed to the method.
    
    Execution continues now without trouble.
    
    Change-Id: I447af45db97f086963027c131c6b5fb9dab93c7a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155066
    Reviewed-by: Jean-Pierre Ledure <[email protected]>
    Tested-by: Jenkins

diff --git a/wizards/source/scriptforge/SF_Session.xba 
b/wizards/source/scriptforge/SF_Session.xba
index b4292f36ea83..2bde313194b1 100644
--- a/wizards/source/scriptforge/SF_Session.xba
+++ b/wizards/source/scriptforge/SF_Session.xba
@@ -679,6 +679,8 @@ Check:
                        If Not SF_FileSystem.FileExists(sFile) Then GoTo 
CatchNotExists
                        vFileNames(i) = ConvertToUrl(sFile)
                Next i
+       Else
+               vFileNames = Array()
        End If
 
 Try:

Reply via email to