diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2023-07-30 15:03:15 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-07-31 21:41:17 +0200 |
commit | 2a3c58fabe7024f60dccface721bce5693fdb849 (patch) | |
tree | f8609bf5e02a8dff80e2ea6e40f3b3e696eef3a6 /wizards | |
parent | 5cbc5d05a8f65fd6e2edc66a0649e4c82cdf0c3a (diff) |
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 <jp@ledure.be>
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
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/source/scriptforge/SF_Session.xba | 2 |
1 files changed, 2 insertions, 0 deletions
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: |