From bd640d338b6c8a1a4915c4b88b52ac1cc48f7dd0 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Ledure Date: Sun, 30 Jul 2023 15:03:15 +0200 Subject: 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 Tested-by: Jenkins --- wizards/source/scriptforge/SF_Session.xba | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wizards') 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: -- cgit v1.2.3