You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/11/06 05:34:27 UTC
[jira] [Comment Edited] (CB-9965) Null pointer exception calling
resolveLocalFileSystemURI on image from photos
[ https://issues.apache.org/jira/browse/CB-9965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993092#comment-14993092 ]
Joe Bowser edited comment on CB-9965 at 11/6/15 4:33 AM:
---------------------------------------------------------
I know, because I put the call in there when I was last in the Camera plugin. :)
I'll keep testing this on my end, but I can only test unless I get an ICLA, which I said on GitHub.
was (Author: bowserj):
I know, because I put the call in there when I was last in the Camera plugin. :)
That said, I'm not 100% confident it covers all use cases, which is why I want to look into this pull request.
> Null pointer exception calling resolveLocalFileSystemURI on image from photos
> -----------------------------------------------------------------------------
>
> Key: CB-9965
> URL: https://issues.apache.org/jira/browse/CB-9965
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Affects Versions: 2.1.0, 3.0.0
> Environment: Android 5+
> Reporter: Connor Pearson
> Assignee: Joe Bowser
> Labels: Android
>
> Calling resolveLocalFileSystemURI on an image returned from Photos library (using camera plugin) on android lollipop triggers a 1000 error code.
> Debugging the application shows that this is caused by a null pointer exception.
> Example code:
> {code:javascript}
> document.getElementById("myButton").addEventListener("click", function(){
> navigator.camera.getPicture(function(uri){
> console.log(uri); //content://com.android.providers.media.documents/document/image%3A27
> window.resolveLocalFileSystemURI(uri, function(fileEntry){
> alert("success");
> },function(error){
> alert("Fail resolveFileSystemURI code: " + error.code);
> });
> }, null, {sourceType: 0, allowEdit: false});
> });
> {code}
--
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