mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:40:37 +00:00
Only add attachmentFileWrapper to the attachments array if it isn't nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19807 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8b16032c5f
commit
bde5299f6d
2 changed files with 7 additions and 1 deletions
|
@ -956,7 +956,8 @@
|
|||
|
||||
[attachmentFileWrapper setFilename: attachmentFilename];
|
||||
[attachmentFileWrapper setPreferredFilename: attachmentFilename];
|
||||
[attachments addObject: attachmentFileWrapper];
|
||||
if (attachmentFileWrapper)
|
||||
[attachments addObject: attachmentFileWrapper];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue