{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7321","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7321/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7321/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7321/events","html_url":"https://github.com/appium/appium/issues/7321","id":192514707,"number":7321,"title":"Appium Settings application crashes on Android","user":{"login":"jeangb","id":22364949,"avatar_url":"https://avatars1.githubusercontent.com/u/22364949?v=4","gravatar_id":"","url":"https://api.github.com/users/jeangb","html_url":"https://github.com/jeangb","followers_url":"https://api.github.com/users/jeangb/followers","following_url":"https://api.github.com/users/jeangb/following{/other_user}","gists_url":"https://api.github.com/users/jeangb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeangb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeangb/subscriptions","organizations_url":"https://api.github.com/users/jeangb/orgs","repos_url":"https://api.github.com/users/jeangb/repos","events_url":"https://api.github.com/users/jeangb/events{/privacy}","received_events_url":"https://api.github.com/users/jeangb/received_events","type":"User","site_admin":false},"labels":[{"id":34328464,"url":"https://api.github.com/repos/appium/appium/labels/Android","name":"Android","color":"ADFF2F","default":false},{"id":24368806,"url":"https://api.github.com/repos/appium/appium/labels/Bug","name":"Bug","color":"fc2929","default":false},{"id":647299879,"url":"https://api.github.com/repos/appium/appium/labels/P1","name":"P1","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-11-30T09:24:36Z","updated_at":"2017-09-21T14:14:51Z","closed_at":null,"author_association":"NONE","body":"## The problem\r\n\r\nThe \"Appium Settings\" application crashes each time I try to launch it.\r\nI noticed that when I was trying to understang why the driver.setConnection(Connection.NONE) doesn't work anymore.\r\nI rebooted my device, uninstalled Appium Settings, updated Appium Server but that didn't change a thing. \r\n\r\n## Environment\r\n\r\n* Appium version : 1.6.1\r\n* Last Appium version that did not exhibit the issue (if applicable): I don't remember, it was before 1.5.\r\n* Desktop OS/version used to run Appium: windows 7 64bit\r\n* Node.js version (unless using Appium.app|exe): 6.9.1\r\n* Mobile platform/version under test: Android 4.4.2\r\n* Real device or emulator/simulator: real (Galaxy S4)\r\n* Appium CLI or Appium.app|exe:\r\n\r\n## Details\r\n\r\nWhen I launch Appium Settings on my device, it instantanly crashes. \"Unfortunately, Appium Settings has stopped\".\r\n I guess this related with the fact that I can't anymore change the connection status of my device ?"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/331169626","html_url":"https://github.com/appium/appium/issues/7321#issuecomment-331169626","issue_url":"https://api.github.com/repos/appium/appium/issues/7321","id":331169626,"user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars2.githubusercontent.com/u/2614354?v=4","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T14:14:51Z","updated_at":"2017-09-21T14:14:51Z","author_association":"OWNER","body":"Relevant stack:\r\n```\r\nE/AndroidRuntime( 5526): Process: io.appium.settings, PID: 5526\r\nE/AndroidRuntime( 5526): java.lang.RuntimeException: Unable to start activity ComponentInfo{io.appium.settings/io.appium.settings.Settings}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Set android.os.Bundle.keySet()' on a null object reference\r\nE/AndroidRuntime( 5526): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3151)\r\nE/AndroidRuntime( 5526): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3261)\r\nE/AndroidRuntime( 5526): \tat android.app.ActivityThread.access$1000(ActivityThread.java:219)\r\nE/AndroidRuntime( 5526): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1735)\r\nE/AndroidRuntime( 5526): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\nE/AndroidRuntime( 5526): \tat android.os.Looper.loop(Looper.java:145)\r\nE/AndroidRuntime( 5526): \tat android.app.ActivityThread.main(ActivityThread.java:6939)\r\nE/AndroidRuntime( 5526): \tat java.lang.reflect.Method.invoke(Native Method)\r\nE/AndroidRuntime( 5526): \tat java.lang.reflect.Method.invoke(Method.java:372)\r\nE/AndroidRuntime( 5526): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)\r\nE/AndroidRuntime( 5526): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)\r\nE/AndroidRuntime( 5526): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Set android.os.Bundle.keySet()' on a null object reference\r\nE/AndroidRuntime( 5526): \tat io.appium.settings.Settings.onCreate(Settings.java:42)\r\nE/AndroidRuntime( 5526): \tat android.app.Activity.performCreate(Activity.java:6609)\r\nE/AndroidRuntime( 5526): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)\r\nE/AndroidRuntime( 5526): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3104)\r\nE/AndroidRuntime( 5526): \t... 10 more\r\nD/InputDispatcher(  743): Focused application set to: xxxx\r\nW/ActivityManager(  743):   Force finishing activity 1 io.appium.settings/.Settings\r\nD/FocusedStackFrame(  743): Set to : 0\r\nI/ActivityManager(  743): Skip updateThumbnail for r=ActivityRecord{13ac078a u0 io.appium.settings/.Settings t3 f}\r\n```\r\n\r\nThis should fix the issue: https://github.com/appium/appium-android-driver/pull/272"}}
{"actor":{"display_login":"imurchie"}}