Merged 5.0.N (5.0.4) to 5.1.N (5.1.1)

121765 nsmintanca: Merged V4.2-BUG-FIX (4.2.7) to 5.0.N (5.0.4)
      121735 rneamtu: 121670: MNT-13814 : Using MS word Save As pdf does not work correctly.
         - Fixed failing test


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@121797 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ramona Neamtu
2016-02-03 09:36:54 +00:00
parent 704e64cfc0
commit ddb229c65c

View File

@@ -617,7 +617,7 @@ public abstract class AbstractContentWriter extends AbstractContentAccessor impl
private void doGuessMimetype(String filename)
{
String mimetype;
if (filename.startsWith(MimetypeMap.MACOS_RESOURCE_FORK_FILE_NAME_PREFIX))
if (filename != null && filename.startsWith(MimetypeMap.MACOS_RESOURCE_FORK_FILE_NAME_PREFIX))
{
mimetype = MimetypeMap.MIMETYPE_APPLEFILE;
}