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,7 +1182,9 @@ public class Main {
System.out.println(" Filename: " + attachment.getFileName()); System.out.println(" Filename: " + attachment.getFileName());
System.out.println(" Type: " + attachment.getContentType()); System.out.println(" Type: " + attachment.getContentType());
System.out.println(" Thumbnail:"); System.out.println(" Thumbnail:");
printAttachment(attachment.getThumbnail()); if (attachment.getThumbnail() != null) {
printAttachment(attachment.getThumbnail());
}
} }
} }
} }