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

New commits:
commit b9d9dba945d88f0eafbac874c9fc1b432113d23f
Author:     Jean-Pierre Ledure <j...@ledure.be>
AuthorDate: Sun Jul 30 15:03:15 2023 +0200
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Mon Aug 7 15:15:35 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 <j...@ledure.be>
    Tested-by: Jenkins
    (cherry picked from commit 1e94999d6198258d1451584e96810bd8fb294653)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155040
    (cherry picked from commit 6c50435a56cade7b4a9c48aaa85ef3c8eca6f15a)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155143
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>

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