mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-11 11:29:03 +08: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:
committed by
Facebook Github Bot
parent
07ac31eb3f
commit
4768bea0cf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user