diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2023-07-30 15:03:15 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2023-07-30 18:28:48 +0200 |
commit | bd640d338b6c8a1a4915c4b88b52ac1cc48f7dd0 (patch) | |
tree | e704211a3e4d2f76bb99f8286215ffd6049a3f9a /wizards/source | |
parent | f324cba8600f9aa2c13e8531e1ce5467442b097b (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.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: |