mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:09:03 +01:00
Handled null condition
This commit is contained in:
parent
da74d23be6
commit
19290fd0c6
@ -356,7 +356,9 @@ Clipperz.PM.DataModel.Attachment.contentTypeIcon = function (aContentType) {
|
|||||||
|
|
||||||
result = 'other file';
|
result = 'other file';
|
||||||
|
|
||||||
if (aContentType == "application/pdf") {
|
if (aContentType == null) {
|
||||||
|
result = 'other file';
|
||||||
|
} else if (aContentType == "application/pdf") {
|
||||||
result = 'pdf file';
|
result = 'pdf file';
|
||||||
} else if (aContentType.indexOf('image/') == 0) {
|
} else if (aContentType.indexOf('image/') == 0) {
|
||||||
result = 'image file';
|
result = 'image file';
|
||||||
|
Loading…
Reference in New Issue
Block a user