You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ville Karavirta (JIRA)" <ji...@apache.org> on 2013/06/11 16:18:20 UTC

[jira] [Created] (CB-3756) Camera.getPicture fails when choosing from photo library

Ville Karavirta created CB-3756:
-----------------------------------

             Summary: Camera.getPicture fails when choosing from photo library
                 Key: CB-3756
                 URL: https://issues.apache.org/jira/browse/CB-3756
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.8.0
            Reporter: Ville Karavirta
            Assignee: Shazron Abdullah


In v2.8.0 on iOS, choosing a photo from library fails always and calls the error callback with message "(null)".

As far as I could debug it, it fails on line 343 of CDVCamera.m due to data being null. Reason seems to be that on line 310, the UIImageJPEGRepresentation is assigned to self.data and nothing is ever assigned to data.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira