summaryrefslogtreecommitdiff
path: root/wizards/source
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-30 18:28:48 +0200
commitbd640d338b6c8a1a4915c4b88b52ac1cc48f7dd0 (patch)
treee704211a3e4d2f76bb99f8286215ffd6049a3f9a /wizards/source
parentf324cba8600f9aa2c13e8531e1ce5467442b097b (diff)
ScriptForge (SF_Session) fix SendMail() w/o attachment
Fix error message when no attachment passed to the method. Execution continues 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
Diffstat (limited to 'wizards/source')
-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: