{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1146","repository_url":"https://api.github.com/repos/syncthing/syncthing-android","labels_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1146/comments","events_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1146/events","html_url":"https://github.com/syncthing/syncthing-android/issues/1146","id":333010502,"node_id":"MDU6SXNzdWUzMzMwMTA1MDI=","number":1146,"title":"A lot more crashes more since 0.10.11","user":{"login":"AudriusButkevicius","id":1144861,"node_id":"MDQ6VXNlcjExNDQ4NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1144861?v=4","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-16T19:43:43Z","updated_at":"2018-06-17T09:06:37Z","closed_at":null,"author_association":"MEMBER","body":"![image](https://user-images.githubusercontent.com/1144861/41501915-440674a4-71a5-11e8-8de7-c0918bb9dc7a.png)\r\n\r\n```\r\njava.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.activities.MainActivity.lambda$onServiceStateChange$0$MainActivity (MainActivity.java:116)\r\n  at com.nutomic.syncthingandroid.activities.MainActivity$$Lambda$0.onResult (Unknown Source:4)\r\n  at com.nutomic.syncthingandroid.service.RestApi.lambda$getSystemInfo$7$RestApi (RestApi.java:398)\r\n  at com.nutomic.syncthingandroid.service.RestApi$$Lambda$7.onSuccess (Unknown Source:2)\r\n  at com.nutomic.syncthingandroid.http.ApiRequest.lambda$connect$0$ApiRequest (ApiRequest.java:98)\r\n  at com.nutomic.syncthingandroid.http.ApiRequest$$Lambda$0.onResponse (Unknown Source:4)\r\n\r\njava.lang.ClassCastException: \r\n  at android.app.SharedPreferencesImpl.getStringSet (SharedPreferencesImpl.java:234)\r\n  at com.nutomic.syncthingandroid.service.SyncthingRunnable.buildEnvironment (SyncthingRunnable.java:435)\r\n  at com.nutomic.syncthingandroid.service.SyncthingRunnable.run (SyncthingRunnable.java:133)\r\n  at com.nutomic.syncthingandroid.service.SyncthingRunnable.run (SyncthingRunnable.java:106)\r\n\r\nCaused by: java.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.service.RestApi.editFolder (RestApi.java:285)\r\n  at com.nutomic.syncthingandroid.activities.FolderActivity.updateFolder (FolderActivity.java:486)\r\n  at com.nutomic.syncthingandroid.activities.FolderActivity.onPause (FolderActivity.java:253)\r\n\r\njava.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.service.RestApi.getOptions (RestApi.java:371)\r\n  at com.nutomic.syncthingandroid.activities.MainActivity.lambda$showUsageReportingDialog$10$MainActivity (MainActivity.java:477)\r\n  at com.nutomic.syncthingandroid.activities.MainActivity$$Lambda$9.onClick (Unknown Source)\r\n\r\njava.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.activities.MainActivity.lambda$showUsageReportingDialog$10$MainActivity (MainActivity.java:477)\r\n  at com.nutomic.syncthingandroid.activities.MainActivity$$Lambda$9.onClick (Unknown Source)\r\n\r\nCaused by: java.io.FileNotFoundException: \r\n  at java.io.FileInputStream.open (Native Method)\r\n  at java.io.FileInputStream.<init> (FileInputStream.java:146)\r\n  at com.nutomic.syncthingandroid.activities.WebGuiActivity.loadCaCert (WebGuiActivity.java:213)\r\n\r\njava.lang.NullPointerException: \r\n  at android.support.v4.app.BackStackRecord.doAddOp (BackStackRecord.java:392)\r\n  at android.support.v4.app.BackStackRecord.add (BackStackRecord.java:387)\r\n  at android.support.v4.app.FragmentPagerAdapter.instantiateItem (FragmentPagerAdapter.java:104)\r\n  at android.support.v4.view.ViewPager.addNewItem (ViewPager.java:1004)\r\n  at android.support.v4.view.ViewPager.populate (ViewPager.java:1152)\r\n  at android.support.v4.view.ViewPager.populate (ViewPager.java:1086)\r\n  at android.support.v4.view.ViewPager.onMeasure (ViewPager.java:1616)\r\n  at android.view.View.measure (View.java:22104)\r\n\r\nCaused by: java.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.activities.FolderActivity.updateFolder (FolderActivity.java:486)\r\n  at com.nutomic.syncthingandroid.activities.FolderActivity.onPause (FolderActivity.java:253)\r\n\r\njava.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.service.RestApi.getGui (RestApi.java:375)\r\n  at com.nutomic.syncthingandroid.fragments.DrawerFragment.showQrCode (DrawerFragment.java:210)\r\n  at com.nutomic.syncthingandroid.fragments.DrawerFragment.onClick (DrawerFragment.java:241)\r\n\r\nCaused by: java.lang.ClassCastException: \r\n  at com.nutomic.syncthingandroid.service.SyncthingService.onCreate (SyncthingService.java:136)\r\n\r\njava.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.activities.FolderActivity$2.onCheckedChanged (FolderActivity.java:111)\r\n\r\njava.lang.NullPointerException: \r\n  at com.nutomic.syncthingandroid.activities.ShareActivity.lambda$onCreate$0$ShareActivity (ShareActivity.java:152)\r\n  at com.nutomic.syncthingandroid.activities.ShareActivity$$Lambda$0.onClick (Unknown Source:6)\r\n```"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing-android/issues/comments/397865091","html_url":"https://github.com/syncthing/syncthing-android/issues/1146#issuecomment-397865091","issue_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1146","id":397865091,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzg2NTA5MQ==","user":{"login":"Catfriend1","id":16361913,"node_id":"MDQ6VXNlcjE2MzYxOTEz","avatar_url":"https://avatars1.githubusercontent.com/u/16361913?v=4","gravatar_id":"","url":"https://api.github.com/users/Catfriend1","html_url":"https://github.com/Catfriend1","followers_url":"https://api.github.com/users/Catfriend1/followers","following_url":"https://api.github.com/users/Catfriend1/following{/other_user}","gists_url":"https://api.github.com/users/Catfriend1/gists{/gist_id}","starred_url":"https://api.github.com/users/Catfriend1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catfriend1/subscriptions","organizations_url":"https://api.github.com/users/Catfriend1/orgs","repos_url":"https://api.github.com/users/Catfriend1/repos","events_url":"https://api.github.com/users/Catfriend1/events{/privacy}","received_events_url":"https://api.github.com/users/Catfriend1/received_events","type":"User","site_admin":false},"created_at":"2018-06-17T09:06:36Z","updated_at":"2018-06-17T09:06:36Z","author_association":"CONTRIBUTOR","body":"This looks rare but interesting: looks like the config got missing or corrupted and the key files got missing?! I think that can still happen after my fixes but its got rare because there is only one code part left to fix I identified not properly synchronizing with the binary lifecycle and service state signals. Its the part where one resets index or database. Should be rare and easy to fix. I'll go for it.\r\n\r\nCaused by: java.io.FileNotFoundException: at java.io.FileInputStream.open (Native Method) at java.io.FileInputStream.<init> (FileInputStream.java:146) at com.nutomic.syncthingandroid.activities.WebGuiActivity.loadCaCert (WebGuiActivity.java:213)"}}
{"actor":{"display_login":"Catfriend1"}}