{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1218","repository_url":"https://api.github.com/repos/afollestad/material-dialogs","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1218/comments","events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1218/events","html_url":"https://github.com/afollestad/material-dialogs/issues/1218","id":189649869,"number":1218,"title":"android.os.IBinder android.view.View.getWindowToken()' on a null object reference","user":{"login":"starktonys","id":17718382,"avatar_url":"https://avatars.githubusercontent.com/u/17718382?v=3","gravatar_id":"","url":"https://api.github.com/users/starktonys","html_url":"https://github.com/starktonys","followers_url":"https://api.github.com/users/starktonys/followers","following_url":"https://api.github.com/users/starktonys/following{/other_user}","gists_url":"https://api.github.com/users/starktonys/gists{/gist_id}","starred_url":"https://api.github.com/users/starktonys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starktonys/subscriptions","organizations_url":"https://api.github.com/users/starktonys/orgs","repos_url":"https://api.github.com/users/starktonys/repos","events_url":"https://api.github.com/users/starktonys/events{/privacy}","received_events_url":"https://api.github.com/users/starktonys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T09:54:07Z","updated_at":"2016-11-16T10:04:47Z","closed_at":"2016-11-16T10:04:47Z","body":"when i use  this repo, my device is landscape\r\ncode:\r\nnew MaterialDialog.Builder(this).title(R.string.input)\r\n        .content(R.string.input_content)\r\n        .inputRangeRes(2, 16, R.color.md_red_500)\r\n        .inputType(InputType.TYPE_CLASS_TEXT)\r\n        .input(R.string.input_hint, R.string.input_prefill, new MaterialDialog.InputCallback() {\r\n          @Override public void onInput(MaterialDialog dialog, CharSequence input) {\r\n            if (!TextUtils.isEmpty(input.toString())) mPresenter.changeNickName(input.toString());\r\n          }\r\n        })\r\n        .show();\r\n\r\ni click the button ,then crash the follow message\r\n\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder android.view.View.getWindowToken()' on a null object reference\r\n                                                                           at com.afollestad.materialdialogs.util.DialogUtils.hideKeyboard(DialogUtils.java:226)\r\n                                                                           at com.afollestad.materialdialogs.MaterialDialog.dismiss(MaterialDialog.java:1810)\r\n                                                                           at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:343)\r\n                                                                           at android.view.View.performClick(View.java:5610)\r\n                                                                           at android.view.View$PerformClick.run(View.java:22260)\r\n                                                                           at android.os.Handler.handleCallback(Handler.java:751)\r\n                                                                           at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                           at android.os.Looper.loop(Looper.java:154)\r\n                                                                           at android.app.ActivityThread.main(ActivityThread.java:6077)\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)\r\n                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)"},"comment":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/260904991","html_url":"https://github.com/afollestad/material-dialogs/issues/1218#issuecomment-260904991","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1218","id":260904991,"user":{"login":"starktonys","id":17718382,"avatar_url":"https://avatars.githubusercontent.com/u/17718382?v=3","gravatar_id":"","url":"https://api.github.com/users/starktonys","html_url":"https://github.com/starktonys","followers_url":"https://api.github.com/users/starktonys/followers","following_url":"https://api.github.com/users/starktonys/following{/other_user}","gists_url":"https://api.github.com/users/starktonys/gists{/gist_id}","starred_url":"https://api.github.com/users/starktonys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starktonys/subscriptions","organizations_url":"https://api.github.com/users/starktonys/orgs","repos_url":"https://api.github.com/users/starktonys/repos","events_url":"https://api.github.com/users/starktonys/events{/privacy}","received_events_url":"https://api.github.com/users/starktonys/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T10:04:47Z","updated_at":"2016-11-16T10:04:47Z","body":"# #"}}
{"actor":{"display_login":"starktonys"}}