{ "id": "175652", "key": "AC-6616", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2020-10-16T08:45:23.000+0000", "created": "2020-10-16T03:05:01.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "58828", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "175616", "key": "TIMOB-28178", "fields": { "summary": "Android: Canceling out of Ti.Media.openPhotoGallery() causes a crash as of 9.1.0", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-16T08:45:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "* Ti.Media.openPhotoGallery* on Android crashes while using the *allowMultiple* option.\r\nUsed to work properly before.\r\n\r\nEnvironment:\r\nTi SDK: *9.2.1.GA*\r\nPhone: Samsung Galaxy Note9 (SM-N9600)\r\nAndroid Version: 10\r\n\r\n{code:javaScript}\r\n Ti.Media.openPhotoGallery({\r\n allowMultiple: true,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n success: function(e) {},\r\n cancel: function () {},\r\n error: function () {}\r\n });\r\n{code}\r\n\r\nGetting the following error after selecting multiple images. Selecting a single image seems to work fine.\r\n\r\n{code:java}\r\n[ERROR] TiExceptionHandler: (main) [33125,39842] Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { flg=0x1 clip={image/* U:content://com.android.providers.media.documents/document/image%3A21912 ...} }} to activity {xxx.xxxx/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] TiExceptionHandler: ti.modules.titanium.media.MediaModule$1.onResult(MediaModule.java:973)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:60)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:117)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:900)\r\n[ERROR] TiExceptionHandler: android.app.Activity.dispatchActivityResult(Activity.java:8294)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.deliverResults(ActivityThread.java:5335)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.handleSendResult(ActivityThread.java:5383)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread$H.handleMessage(ActivityThread.java:2270)\r\n[ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:107)\r\n[ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:237)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:8125)\r\n[ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Ti.Media.openPhotoGallery Crash while using allowMultiple option", "creator": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "environment": null, "comment": { "comments": [ { "id": "457263", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Please fix as soon as possible with 9.2.2\r\n\r\nThanks and Regards", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2020-10-16T03:06:35.000+0000", "updated": "2020-10-16T03:06:35.000+0000" }, { "id": "457264", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Closing as a duplicate of TIMOB-28178 which is scheduled for 9.3.0", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-10-16T08:45:23.000+0000", "updated": "2020-10-16T08:45:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }