mirror of
https://github.com/status-im/react-native-cameraroll.git
synced 2025-01-27 01:52:11 +00:00
Fix CameraRoll.getPhotos() crash on Android if device has a problematic video asset (#21438)
Summary: Changed catching IOException to Exception Fixes #20112 Pull Request resolved: https://github.com/facebook/react-native/pull/21438 Differential Revision: D10132453 Pulled By: hramos fbshipit-source-id: c68fa8c45d43e4f2d116b8084ffd731ad6bf5aec
This commit is contained in:
parent
5785445ae8
commit
f1616a4e57
@ -443,7 +443,7 @@ public class CameraRollManager extends ReactContextBaseJavaModule {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user