{ "id": "167801", "key": "MOD-2337", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17610", "name": "Release 6.1.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-25T19:07:15.000+0000", "created": "2017-05-18T23:24:23.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-6.1.0", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-08-06T17:49:37.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": [], "description": "When adding pins on to a map using the {{ti.map}} module after they have been removed the application throws an error. \r\n*Test Steps:*\r\n\r\n# Create a Titanium project \r\n# Copy the the following files in the attachments section from this ticket in to the project ({{app.js}} and {{CurvyRoutes.JS}}) under the resources directory\r\n# Download the map module from https://github.com/appcelerator-modules/ti.map\r\n# Build the android module from the repo you just downloaded (This can be done by going in to {{ti.map/android}} from the {{CLI}} and running the following command {{appc run --build-only}}\r\n# Go to the {{dist}} folder which will be created and then extract the module and add it to your existing modules\r\n# Add the {{ti.map}} module in to your project \r\n# Run the application \r\n# Go to {{annotation test}}\r\n# press the {{RM ALL}} button\r\n# You should see all pins being removed\r\n# Press the {{ADD ALL}} button \r\n# Application will crash \r\n\r\n*Expected result*\r\nPins should be added without any issues. \r\n\r\n*Actual result*\r\nApplication crashes and the following error is shown: \r\n{code:java}\r\n[ERROR] : TiExceptionHandler: (main) [4126,11648] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [0,11648] - In /app.js:416,6\r\n[ERROR] : TiExceptionHandler: (main) [0,11648] - Message: Uncaught Attempt to invoke virtual method 'com.google.android.gms.maps.model.MarkerOptions com.google.android.gms.maps.model.MarkerOptions.position(com.google.android.gms.maps.model.LatLng)' on a null object reference\r\n[ERROR] : TiExceptionHandler: (main) [0,11648] - Source: \tmap.addAnnotations([anno, anno2, anno3, anno4]);\r\n[ERROR] : V8Exception: Exception occurred at /app.js:416: Uncaught Attempt to invoke virtual method 'com.google.android.gms.maps.model.MarkerOptions com.google.android.gms.maps.model.MarkerOptions.position(com.google.android.gms.maps.model.LatLng)' on a null object reference\r\n[ERROR] : V8Exception: Attempt to invoke virtual method 'com.google.android.gms.maps.model.MarkerOptions com.google.android.gms.maps.model.MarkerOptions.position(com.google.android.gms.maps.model.LatLng)' on a null object reference\r\n{code}\r\n", "attachment": [ { "id": "62252", "filename": "app.js", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-18T22:54:28.000+0000", "size": 52816, "mimeType": "text/javascript" }, { "id": "62251", "filename": "CurvyRoutes.js", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-18T22:54:30.000+0000", "size": 3382, "mimeType": "text/javascript" } ], "flagged": false, "summary": "(Android) When removing a pin from the map and then add it back, the application throws an error", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Command-Line Interface, version 6.2.1\r\nti.map (3.1.1) \r\nGoogle Nexus 6P (7.1.2)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nXcode: 8.2\r\nAppcelerator Studio: 4.8.1.201612050850", "closedSprints": [ { "id": 896, "state": "closed", "name": "2017 Sprint 11 SDK", "startDate": "2017-05-22T02:41:17.888Z", "endDate": "2017-06-05T02:41:00.000Z", "completeDate": "2017-06-05T00:14:33.418Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "420084", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ti.map: https://github.com/appcelerator-modules/ti.map/pull/202", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-21T21:00:44.000+0000", "updated": "2017-05-21T21:00:44.000+0000" }, { "id": "420464", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, test and other information can be found at: https://github.com/appcelerator-modules/ti.map/pull/202", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-25T20:52:12.000+0000", "updated": "2017-05-25T20:52:12.000+0000" }, { "id": "440248", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:37.000+0000", "updated": "2018-08-06T17:49:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }