Add missing null check

Fixes #142
This commit is contained in:
AsamK 2018-08-12 20:18:07 +02:00
parent 50fb5587ec
commit 12c296f9ec

View file

@ -1182,10 +1182,12 @@ public class Main {
System.out.println(" Filename: " + attachment.getFileName());
System.out.println(" Type: " + attachment.getContentType());
System.out.println(" Thumbnail:");
if (attachment.getThumbnail() != null) {
printAttachment(attachment.getThumbnail());
}
}
}
}
if (message.getAttachments().isPresent()) {
System.out.println("Attachments: ");