summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2023-07-30 15:03:15 +0200
committerJean-Pierre Ledure <jp@ledure.be>2023-07-31 11:53:16 +0200
commit3f72da38ed0d5d69bf68577b61cdfa60777094cd (patch)
tree0ada85305801e78db4914c59a8ea29688e5e1503
parent0290a06c016186588720d73d6786acdc9f3880e6 (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
-rw-r--r--wizards/source/scriptforge/SF_Session.xba2
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: