-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch exception when opening an ExifInterface for a non-jpeg
Summary: Fixes #1558 and #1760. When a local file is loaded an attempt is made to load the thumbnail from its exif data but that is only available for JPEGs. Trying the same with a PNG lead to an `IOException` which wasn't being caught within the producer. Catching it allows us to return null which is the appropriate thing to do if no thumbnail is available. Reviewed By: erikandre Differential Revision: D5077525 fbshipit-source-id: fdfd8e0bc369e4672729c6e3bfde5b035f836149
- Loading branch information
1 parent
4f3796b
commit 81334f1
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters