You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James White (JIRA)" <ji...@apache.org> on 2016/02/23 22:24:18 UTC
[jira] [Created] (CB-10682) Media-Capture plugin crashes app on
Windows when user cancels image capture operation
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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org