{"action":"created","issue":{"url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui/issues/63","repository_url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui","labels_url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui/issues/63/comments","events_url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui/issues/63/events","html_url":"https://github.com/coinblesk/coinblesk-client-gui/issues/63","id":148779604,"number":63,"title":"NPE in transaction detail activity if wallet is not fully loaded yet","user":{"login":"albrechta","id":8121823,"avatar_url":"https://avatars.githubusercontent.com/u/8121823?v=3","gravatar_id":"","url":"https://api.github.com/users/albrechta","html_url":"https://github.com/albrechta","followers_url":"https://api.github.com/users/albrechta/followers","following_url":"https://api.github.com/users/albrechta/following{/other_user}","gists_url":"https://api.github.com/users/albrechta/gists{/gist_id}","starred_url":"https://api.github.com/users/albrechta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albrechta/subscriptions","organizations_url":"https://api.github.com/users/albrechta/orgs","repos_url":"https://api.github.com/users/albrechta/repos","events_url":"https://api.github.com/users/albrechta/events{/privacy}","received_events_url":"https://api.github.com/users/albrechta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T21:59:54Z","updated_at":"2016-04-16T16:49:48Z","closed_at":"2016-04-16T16:49:48Z","body":"If wallet appkit is not finished with the initialization, kit.wallet() returns null.\r\nHappens if e.g. screen is rotated in Tx detail activity.\r\n\r\n```\r\n04-15 23:57:20.641 7683-7683/com.coinblesk.client E/AndroidRuntime: FATAL EXCEPTION: main\r\nProcess: com.coinblesk.client, PID: 7683\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'org.bitcoinj.core.Transaction org.bitcoinj.core.Wallet.getTransaction(org.bitcoinj.core.Sha256Hash)' on a null object reference\r\n    at com.coinblesk.payments.WalletService$WalletServiceBinder.getTransaction(WalletService.java:292)\r\n    at com.coinblesk.client.TransactionDetailActivity.setTransactionDetails(TransactionDetailActivity.java:93)\r\n    at com.coinblesk.client.TransactionDetailActivity.access$100(TransactionDetailActivity.java:54)\r\n    at com.coinblesk.client.TransactionDetailActivity$3.onServiceConnected(TransactionDetailActivity.java:184)\r\n    at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1336)\r\n    at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1353)\r\n    at android.os.Handler.handleCallback(Handler.java:739)\r\n    at android.os.Handler.dispatchMessage(Handler.java:95)\r\n    at android.os.Looper.loop(Looper.java:135)\r\n    at android.app.ActivityThread.main(ActivityThread.java:5349)\r\n    at java.lang.reflect.Method.invoke(Native Method)\r\n    at java.lang.reflect.Method.invoke(Method.java:372)\r\n    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)\r\n    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)\r\n```"},"comment":{"url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui/issues/comments/210855363","html_url":"https://github.com/coinblesk/coinblesk-client-gui/issues/63#issuecomment-210855363","issue_url":"https://api.github.com/repos/coinblesk/coinblesk-client-gui/issues/63","id":210855363,"user":{"login":"dcale","id":2114842,"avatar_url":"https://avatars.githubusercontent.com/u/2114842?v=3","gravatar_id":"","url":"https://api.github.com/users/dcale","html_url":"https://github.com/dcale","followers_url":"https://api.github.com/users/dcale/followers","following_url":"https://api.github.com/users/dcale/following{/other_user}","gists_url":"https://api.github.com/users/dcale/gists{/gist_id}","starred_url":"https://api.github.com/users/dcale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcale/subscriptions","organizations_url":"https://api.github.com/users/dcale/orgs","repos_url":"https://api.github.com/users/dcale/repos","events_url":"https://api.github.com/users/dcale/events{/privacy}","received_events_url":"https://api.github.com/users/dcale/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T16:49:48Z","updated_at":"2016-04-16T16:49:48Z","body":"fixed"}}