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

New commits:
commit 3f72da38ed0d5d69bf68577b61cdfa60777094cd
Author:     Jean-Pierre Ledure <[email protected]>
AuthorDate: Sun Jul 30 15:03:15 2023 +0200
Commit:     Jean-Pierre Ledure <[email protected]>
CommitDate: Mon Jul 31 11:53:16 2023 +0200

    ScriptForge (SF_Session) fix SendMail() w/o attachment
    
    Fix error message when no attachment
    is passed to the method.
    
    Execution will continue 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
    (cherry picked from commit 1e94999d6198258d1451584e96810bd8fb294653)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155040
    (cherry picked from commit ec03e4833659eab7918c026ab9e60e83dbc8c5be)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155042

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