capacitor-plugin-camera-forked 3.0.13 → 3.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -449,7 +449,7 @@ public class CameraPreviewPlugin extends Plugin {
449
449
 
450
450
  @PluginMethod
451
451
  public void setZoom(PluginCall call) {
452
- if (call.hasOption("factor")) {
452
+ if (call.hasOption("factor") && camera != null) {
453
453
  Float factor = call.getFloat("factor");
454
454
  try {
455
455
  camera.getCameraControl().setZoomRatio(factor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-camera-forked",
3
- "version": "3.0.13",
3
+ "version": "3.0.33",
4
4
  "description": "A capacitor camera plugin - A custom Capacitor camera plugin with additional features.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",