Update FAQ.md

This commit is contained in:
taksoidet 2019-01-31 02:44:52 +03:00 committed by GitHub
parent 935b75d685
commit b4f63905c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ public PhotoSize getPhoto(Update update) {
// We fetch the bigger photo
return photos.stream()
.max(Comparator.comparing(PhotoSize::getFileSize)).get();
.max(Comparator.comparing(PhotoSize::getFileSize)).orElse(null);
}
// Return null if not found