Skip to content

Commit

Permalink
Fix CameraRoll.getPhotos() crash on Android if device has a problemat…
Browse files Browse the repository at this point in the history
…ic video asset (facebook#21438)

Summary:
Changed catching IOException to Exception
Fixes facebook#20112
Pull Request resolved: facebook#21438

Differential Revision: D10132453

Pulled By: hramos

fbshipit-source-id: c68fa8c45d43e4f2d116b8084ffd731ad6bf5aec
  • Loading branch information
naxel authored and facebook-github-bot committed Oct 1, 2018
1 parent 1d60e53 commit 0acc605
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private static boolean putImageInfo(
retriever.release();
photoDescriptor.close();
}
} catch (IOException e) {
} catch (Exception e) {
FLog.e(ReactConstants.TAG, "Could not get video metadata for " + photoUri.toString(), e);
return false;
}
Expand Down

0 comments on commit 0acc605

Please sign in to comment.