James White created CB-10682:
--------------------------------
Summary: Media-Capture plugin crashes app on Windows when user
cancels image capture operation
Key: CB-10682
URL: https://issues.apache.org/jira/browse/CB-10682
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Media Capture
Affects Versions: 1.2.0
Environment: Windows
Reporter: James White
When a user cancels an image capture operation on Windows using the Media
Capture plugin, the file variable returned by the
cameraCaptureUI.captureFileAsync call on line 377 of CaptureProxy.js is either
undefined or null.
The attempt on line 378 to invoke file.moveAsync then generates an exception,
causing the application to abruptly crash.
According to the documentation at
https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.capture.cameracaptureui.capturefileasync.aspx,
it looks like when attempting to capture images and/or video, the file
reference returned is falsey if the user cancels the operation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]