{"action":"closed","issue":{"url":"https://api.github.com/repos/kontalk/androidclient/issues/658","repository_url":"https://api.github.com/repos/kontalk/androidclient","labels_url":"https://api.github.com/repos/kontalk/androidclient/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/kontalk/androidclient/issues/658/comments","events_url":"https://api.github.com/repos/kontalk/androidclient/issues/658/events","html_url":"https://github.com/kontalk/androidclient/issues/658","id":137198888,"number":658,"title":"Crash while importing key","user":{"login":"daniele-athome","id":3763726,"avatar_url":"https://avatars.githubusercontent.com/u/3763726?v=3","gravatar_id":"","url":"https://api.github.com/users/daniele-athome","html_url":"https://github.com/daniele-athome","followers_url":"https://api.github.com/users/daniele-athome/followers","following_url":"https://api.github.com/users/daniele-athome/following{/other_user}","gists_url":"https://api.github.com/users/daniele-athome/gists{/gist_id}","starred_url":"https://api.github.com/users/daniele-athome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniele-athome/subscriptions","organizations_url":"https://api.github.com/users/daniele-athome/orgs","repos_url":"https://api.github.com/users/daniele-athome/repos","events_url":"https://api.github.com/users/daniele-athome/events{/privacy}","received_events_url":"https://api.github.com/users/daniele-athome/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kontalk/androidclient/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"daniele-athome","id":3763726,"avatar_url":"https://avatars.githubusercontent.com/u/3763726?v=3","gravatar_id":"","url":"https://api.github.com/users/daniele-athome","html_url":"https://github.com/daniele-athome","followers_url":"https://api.github.com/users/daniele-athome/followers","following_url":"https://api.github.com/users/daniele-athome/following{/other_user}","gists_url":"https://api.github.com/users/daniele-athome/gists{/gist_id}","starred_url":"https://api.github.com/users/daniele-athome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniele-athome/subscriptions","organizations_url":"https://api.github.com/users/daniele-athome/orgs","repos_url":"https://api.github.com/users/daniele-athome/repos","events_url":"https://api.github.com/users/daniele-athome/events{/privacy}","received_events_url":"https://api.github.com/users/daniele-athome/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kontalk/androidclient/milestones/37","html_url":"https://github.com/kontalk/androidclient/milestones/3.1.4","labels_url":"https://api.github.com/repos/kontalk/androidclient/milestones/37/labels","id":1540950,"number":37,"title":"3.1.4","description":"Bugfix release and minor improvements.","creator":{"login":"daniele-athome","id":3763726,"avatar_url":"https://avatars.githubusercontent.com/u/3763726?v=3","gravatar_id":"","url":"https://api.github.com/users/daniele-athome","html_url":"https://github.com/daniele-athome","followers_url":"https://api.github.com/users/daniele-athome/followers","following_url":"https://api.github.com/users/daniele-athome/following{/other_user}","gists_url":"https://api.github.com/users/daniele-athome/gists{/gist_id}","starred_url":"https://api.github.com/users/daniele-athome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniele-athome/subscriptions","organizations_url":"https://api.github.com/users/daniele-athome/orgs","repos_url":"https://api.github.com/users/daniele-athome/repos","events_url":"https://api.github.com/users/daniele-athome/events{/privacy}","received_events_url":"https://api.github.com/users/daniele-athome/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":9,"state":"open","created_at":"2016-01-25T09:54:49Z","updated_at":"2016-03-06T19:32:20Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-02-29T09:30:03Z","updated_at":"2016-03-06T19:32:20Z","closed_at":"2016-03-06T19:32:20Z","body":"Android 6.0.\r\nProbably because import is launched before the key generator ends (thus null mKey).\r\n\r\n```\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.kontalk.crypto.PersonalKey.toBase64()' on a null object reference\r\n    at org.kontalk.util.Preferences.saveRegistrationProgress(Preferences.java:560)\r\n    at org.kontalk.ui.NumberValidation.startValidationCode(NumberValidation.java:1101)\r\n    at org.kontalk.ui.NumberValidation.startValidationCode(NumberValidation.java:1088)\r\n    at org.kontalk.ui.NumberValidation.access$1200(NumberValidation.java:112)\r\n    at org.kontalk.ui.NumberValidation$16.run(NumberValidation.java:1082)\r\n    at android.os.Handler.handleCallback(Handler.java:746)\r\n    at android.os.Handler.dispatchMessage(Handler.java:95)\r\n    at android.os.Looper.loop(Looper.java:148)\r\n    at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n    at java.lang.reflect.Method.invoke(Native Method)\r\n    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n```"}}