wizards/source/scriptforge/SF_Session.xba | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 6c50435a56cade7b4a9c48aaa85ef3c8eca6f15a Author: Jean-Pierre Ledure <j...@ledure.be> AuthorDate: Sun Jul 30 15:03:15 2023 +0200 Commit: Jean-Pierre Ledure <j...@ledure.be> CommitDate: Mon Jul 31 09:34:57 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 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: