Avoid "ERROR [alfresco.webdav.protocol] [http-8080-1] java.lang.NullPointerException" when browsing a webdav share where the mimetype of a document lacks a human readable version

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28506 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-06-21 23:21:47 +00:00
parent cea16de3b3
commit 52fd30df92

View File

@@ -468,6 +468,10 @@ public class GetMethod extends WebDAVMethod
if (reader != null)
{
mimetype = mimeTypeService.getDisplaysByMimetype().get(reader.getMimetype());
if (mimetype == null)
{
mimetype = reader.getMimetype();
}
}
writer.write(mimetype);
}