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

@ -1,3 +1,8 @@
2004-08-31 14:28 Alexander Malmberg <alexander@malmberg.org>
* TextConverters/RTF/RTFProducer.m (-_addAttributesString:): Only add
attachmentFileWrapper to the attachments array if it isn't nil.
2004-07-30 Adrian Robert <arobert@cogsci.ucsd.edu>
* Documentation/GuiUser/GNUMakefile.postamble: Remove an unwanted

View file

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