Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-5454

Android: openPhotoGallery is not working on SDK 6.3.0.GA

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      TI SDK 6.3.0GA
      Android Nexus 6 7.1.1

      Description

      I'm getting the following error when attempting to resize an image picked from the gallery. The image is stored in google drive. Some images work fine, while others do not(this image seems to have been on the drive for a while). If I don't resize and assign it to an ImageView it works just fine.

      12-08 10:29:52.843 6193-6193/? W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
      12-08 10:29:52.844 6193-6193/? W/System.err: at java.io.File.fixSlashes(File.java:183)
      12-08 10:29:52.844 6193-6193/? W/System.err: at java.io.File.<init>(File.java:130)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.io.TitaniumBlob.getNativeFile(TitaniumBlob.java:138)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.TiBlob.getNativePath(TiBlob.java:534)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.TiBlob.getImage(TiBlob.java:586)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.TiBlob.imageAsResized(TiBlob.java:722)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)
      12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:70)
      12-08 10:29:52.844 6193-6193/? W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
      12-08 10:29:52.845 6193-6193/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
      12-08 10:29:52.845 6193-6193/? W/System.err: at android.os.Looper.loop(Looper.java:148)
      12-08 10:29:52.845 6193-6193/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
      12-08 10:29:52.845 6193-6193/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
      12-08 10:29:52.845 6193-6193/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      12-08 10:29:52.845 6193-6193/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shossain Shak Hossain (Inactive)
                Reporter:
                jceaser Joshua A. Ceaser
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration