cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Verge (JIRA)" <>
Subject [jira] [Updated] (CB-9446) Samsung device returns null from Cursor in Camera getRealPath
Date Tue, 04 Aug 2015 12:17:04 GMT


Charles Verge updated CB-9446:
    Attachment: realpath.diff

Patch to fix issue, check for null pointer before creating ExifInterface interface which prevents
complete crash of app on Samsung devices and addition of getRealPathFallback function to use
when Cursor method does not work. getRealPathFallback is from previous plugin versions.

> Samsung device returns null from Cursor in Camera getRealPath
> -------------------------------------------------------------
>                 Key: CB-9446
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera, Plugin Media Capture
>    Affects Versions: 1.2.1
>         Environment: Samsung 4.1.2 GT-N8010
>            Reporter: Charles Verge
>            Priority: Critical
>             Fix For: 1.2.1
>         Attachments: realpath.diff
> Using a Samsung Galaxy Note GT-N8010 with android 4.1.2 produces an exception in the
Exif class. This is due to a filePath being null on line 66 of src/android/
> {code} new ExifInterface(filePath){code}
> This error has been introduced when the switch was made to using Cursors. This error
did not happen in with the camera plugin bundled with Phone Gap 3.4.
> This has been duplicated by other developers independently 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message