{ "id": "148562", "key": "ALOY-1279", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "16907", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-10-28" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-10-27T18:45:39.000+0000", "created": "2015-06-08T07:02:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16596", "name": "Alloy 1.6.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2015-11-10T22:52:57.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": "h5.Reproduce Steps:\r\nSimply run the following alloy project(attached views, styles and controllers folder)\r\n\r\nh5.Expect Result:\r\nShould display a screen with battery and network info.\r\n\r\nh5.Actual Result:\r\nReturn a error, like following:\r\n{code}\r\n[ERROR] TiApplication: (main) [8069,13162] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 4.0.0,2015/05/18 15:42,9239ff9 \r\n[ERROR] TiApplication: java.lang.NullPointerException \r\n[ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.registerBatteryReceiver(PlatformModule.java:292) \r\n[ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.registerBatteryStateReceiver(PlatformModule.java:231) \r\n[ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.eventListenerAdded(PlatformModule.java:244) \r\n[ERROR] TiApplication: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1096) \r\n[ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) \r\n[ERROR] TiApplication: at android.os.Looper.loop(Looper.java:136) \r\n[ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5050) \r\n[ERROR] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) \r\n[ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) \r\n[ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780) \r\n[ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596) \r\n[ERROR] TiApplication: at dalvik.system.NativeStart.main(Native Method) \r\n{code}\r\n\r\nh5.Note:\r\nIf reduce the number of dummyWindow to 2, it works well,\r\nAnd I can only reproduce it on Samsung Galaxy on Android 4.2.2, \r\nit works as expected on Motorola on Android 4.4.2 ", "attachment": [ { "id": "55758", "filename": "dummyWindow.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:54.000+0000", "size": 733, "mimeType": "text/javascript" }, { "id": "55761", "filename": "dummyWindow.tss", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:42.000+0000", "size": 168, "mimeType": "application/octet-stream" }, { "id": "55764", "filename": "dummyWindow.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:27.000+0000", "size": 96, "mimeType": "text/xml" }, { "id": "55756", "filename": "index.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:54.000+0000", "size": 134, "mimeType": "text/javascript" }, { "id": "55759", "filename": "index.tss", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:42.000+0000", "size": 548, "mimeType": "application/octet-stream" }, { "id": "55762", "filename": "index.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:27.000+0000", "size": 488, "mimeType": "text/xml" }, { "id": "55757", "filename": "infoWindow.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:54.000+0000", "size": 2796, "mimeType": "text/javascript" }, { "id": "55760", "filename": "infoWindow.tss", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:42.000+0000", "size": 548, "mimeType": "application/octet-stream" }, { "id": "55763", "filename": "infoWindow.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-06-08T07:01:27.000+0000", "size": 488, "mimeType": "text/xml" } ], "flagged": false, "summary": "Android: Battery event listener causes a crash after open and close multiple windows", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 4.0.0 and 3.5.1", "closedSprints": [ { "id": 502, "state": "closed", "name": "2015 Sprint 20 Tooling", "startDate": "2015-09-28T16:01:48.429Z", "endDate": "2015-10-10T01:01:00.000Z", "completeDate": "2015-10-12T21:13:39.920Z", "originBoardId": 121 } ], "comment": { "comments": [], "maxResults": 4, "total": 4, "startAt": 0 } } }