Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19910

Android: openPhotoGallery fails when remote image selected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.0.2
    • Fix Version/s: Release 5.4.0
    • Component/s: Android
    • Labels:
    • Story Points:
      3
    • Sprint:
      2016 Sprint 08 SDK

      Description

      Affects Versions: 3.4.1GA ... 5.0.0.GA

      This bug was reported earlier here: https://jira.appcelerator.org/browse/TC-5107 but was closed as fixed with no fix.

      Test code

      function selectPhoto(){
        Titanium.Media.openPhotoGallery({   
          success:function(e){
              console.log(e.media);
          },
          allowEditing:true,
          mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]
        });
      };
      

      Error

      [ERROR] TiExceptionHandler: (main) [25682,161650] ----- Titanium Javascript Runtime Error -----
      [ERROR] TiExceptionHandler: (main) [0,161650] - In ti:/httpclient.js:28,9
      [ERROR] TiExceptionHandler: (main) [0,161650] - Message: Uncaught Error: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
      [ERROR] TiExceptionHandler: (main) [0,161650] - Source: 		_send.call(this, options);
      [ERROR] V8Exception: Exception occurred at ti:/httpclient.js:28: Uncaught Error: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
      

        Attachments

          Activity

            People

            • Assignee:
              msamah Ashraf Abu (Inactive)
              Reporter:
              manuellehner Manuel Lehner
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20633
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code