Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9446

Samsung device returns null from Cursor in Camera getRealPath

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.1
    • Component/s: cordova-plugin-camera
    • Labels:
    • Environment:

      Samsung 4.1.2 GT-N8010

    • Flags:
      Patch, Important

      Description

      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/ExifHelper.java

       new ExifInterface(filePath)

      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
      http://stackoverflow.com/questions/30616846/phonegap-app-crash-when-take-a-new-photo-with-camera-plugin

        Attachments

        1. realpath.diff
          4 kB
          Charles Verge

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                charlesverge Charles Verge
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: