mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-30 21:01:10 +00:00
fix: fix for crash on putImageSize due to photoDescriptor being null. (#240)
fixes #226 #239
This commit is contained in:
@@ -709,13 +709,14 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
|
|||||||
width = options.outWidth;
|
width = options.outWidth;
|
||||||
height = options.outHeight;
|
height = options.outHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
photoDescriptor.close();
|
||||||
|
} catch (IOException e) {
|
||||||
|
// Do nothing. We can't handle this, and this is usually a system problem
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
photoDescriptor.close();
|
|
||||||
} catch (IOException e) {
|
|
||||||
// Do nothing. We can't handle this, and this is usually a system problem
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
image.putInt("width", width);
|
image.putInt("width", width);
|
||||||
|
|||||||
Reference in New Issue
Block a user