diff --git a/frontend/delta/js/Clipperz/PM/DataModel/Attachment.js b/frontend/delta/js/Clipperz/PM/DataModel/Attachment.js index 12c379f..f3fdb56 100644 --- a/frontend/delta/js/Clipperz/PM/DataModel/Attachment.js +++ b/frontend/delta/js/Clipperz/PM/DataModel/Attachment.js @@ -355,8 +355,10 @@ Clipperz.PM.DataModel.Attachment.contentTypeIcon = function (aContentType) { var result; result = 'other file'; - - if (aContentType == "application/pdf") { + + if (aContentType == null) { + result = 'other file'; + } else if (aContentType == "application/pdf") { result = 'pdf file'; } else if (aContentType.indexOf('image/') == 0) { result = 'image file';