{"action":"created","issue":{"url":"https://api.github.com/repos/openMF/android-client/issues/253","repository_url":"https://api.github.com/repos/openMF/android-client","labels_url":"https://api.github.com/repos/openMF/android-client/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/openMF/android-client/issues/253/comments","events_url":"https://api.github.com/repos/openMF/android-client/issues/253/events","html_url":"https://github.com/openMF/android-client/issues/253","id":146653296,"number":253,"title":"NPE when navigating back from SavingsAccountSummaryFragment","user":{"login":"xiprox","id":2550945,"avatar_url":"https://avatars.githubusercontent.com/u/2550945?v=3","gravatar_id":"","url":"https://api.github.com/users/xiprox","html_url":"https://github.com/xiprox","followers_url":"https://api.github.com/users/xiprox/followers","following_url":"https://api.github.com/users/xiprox/following{/other_user}","gists_url":"https://api.github.com/users/xiprox/gists{/gist_id}","starred_url":"https://api.github.com/users/xiprox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiprox/subscriptions","organizations_url":"https://api.github.com/users/xiprox/orgs","repos_url":"https://api.github.com/users/xiprox/repos","events_url":"https://api.github.com/users/xiprox/events{/privacy}","received_events_url":"https://api.github.com/users/xiprox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-07T15:06:45Z","updated_at":"2016-10-13T10:05:25Z","closed_at":"2016-10-13T10:05:25Z","body":"```\r\nE/AndroidRuntime: FATAL EXCEPTION: main\r\nProcess: com.mifos.mifosxdroid, PID: 8038\r\n    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference\r\n    at android.view.LayoutInflater.from(LayoutInflater.java:229)\r\n    at com.mifos.mifosxdroid.adapters.SavingsAccountTransactionsListAdapter.<init>(SavingsAccountTransactionsListAdapter.java:35)\r\n    at com.mifos.mifosxdroid.online.SavingsAccountSummaryFragment$1.success(SavingsAccountSummaryFragment.java:186)\r\n    at com.mifos.mifosxdroid.online.SavingsAccountSummaryFragment$1.success(SavingsAccountSummaryFragment.java:153)\r\n    at retrofit.CallbackRunnable$1.run(CallbackRunnable.java:45)\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:148)\r\n    at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n    at java.lang.reflect.Method.invoke(Native Method)\r\n    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n```\r\n\r\nSame thing as #190. Same changes should fix this too. If anyone is up, please do it. Otherwise I'll take a look at it once I'm done with [MIFOSAC-139](https://mifosforge.jira.com/browse/MIFOSAC-139).\r\n\r\n**UPDATE:** Realized that this crash does not happen with the current code since ProgressDialogs are blocking user interaction (i.e., navigating back). It only happens because [MIFOSAC-139](https://mifosforge.jira.com/browse/MIFOSAC-139) allows users to leave the fragment before network operations complete. I'll be fixing these crashes as the second stage of  [MIFOSAC-139](https://mifosforge.jira.com/browse/MIFOSAC-139)."},"comment":{"url":"https://api.github.com/repos/openMF/android-client/issues/comments/253471198","html_url":"https://github.com/openMF/android-client/issues/253#issuecomment-253471198","issue_url":"https://api.github.com/repos/openMF/android-client/issues/253","id":253471198,"user":{"login":"xiprox","id":2550945,"avatar_url":"https://avatars.githubusercontent.com/u/2550945?v=3","gravatar_id":"","url":"https://api.github.com/users/xiprox","html_url":"https://github.com/xiprox","followers_url":"https://api.github.com/users/xiprox/followers","following_url":"https://api.github.com/users/xiprox/following{/other_user}","gists_url":"https://api.github.com/users/xiprox/gists{/gist_id}","starred_url":"https://api.github.com/users/xiprox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiprox/subscriptions","organizations_url":"https://api.github.com/users/xiprox/orgs","repos_url":"https://api.github.com/users/xiprox/repos","events_url":"https://api.github.com/users/xiprox/events{/privacy}","received_events_url":"https://api.github.com/users/xiprox/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T10:05:24Z","updated_at":"2016-10-13T10:05:24Z","body":"Oh. I'm sorry. Somehow forgot to close this I guess. Yes, it's been fixed with https://github.com/openMF/android-client/pull/255/commits/3abacafd709d95aff68da659aad8e2610305a314"}}
{"actor":{"display_login":"xiprox"}}