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:
Alexander Malmberg 2004-08-01 12:33:40 +00:00
parent 8b16032c5f
commit bde5299f6d
2 changed files with 7 additions and 1 deletions

View file

@ -956,7 +956,8 @@
[attachmentFileWrapper setFilename: attachmentFilename];
[attachmentFileWrapper setPreferredFilename: attachmentFilename];
[attachments addObject: attachmentFileWrapper];
if (attachmentFileWrapper)
[attachments addObject: attachmentFileWrapper];
}
}
else