{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/244","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/244/comments","events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/244/events","html_url":"https://github.com/afollestad/material-dialogs/issues/244","id":56908252,"number":244,"title":"NullPointerException in MaterialDialog.sendMultichoiceCallback when no items provided","user":{"login":"sagilo","id":5019344,"avatar_url":"https://avatars.githubusercontent.com/u/5019344?v=3","gravatar_id":"","url":"https://api.github.com/users/sagilo","html_url":"https://github.com/sagilo","followers_url":"https://api.github.com/users/sagilo/followers","following_url":"https://api.github.com/users/sagilo/following{/other_user}","gists_url":"https://api.github.com/users/sagilo/gists{/gist_id}","starred_url":"https://api.github.com/users/sagilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagilo/subscriptions","organizations_url":"https://api.github.com/users/sagilo/orgs","repos_url":"https://api.github.com/users/sagilo/repos","events_url":"https://api.github.com/users/sagilo/events{/privacy}","received_events_url":"https://api.github.com/users/sagilo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afollestad/material-dialogs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-07T11:33:35Z","updated_at":"2015-02-11T18:03:29Z","closed_at":"2015-02-08T08:11:46Z","body":"I use Database to populate multi choice dialog.\r\nIn a certain scenario there are no items to populate the list.\r\nIn this case the dialog is shown with no items (as expected) but as clicking the OK button, NullPointerException exception is thrown in MaterialDialog.java (764).\r\nNotice 'selectedIndicesList' is initialized only if 'items' AND 'callback' are provided but accessed only when callback is provided (not checking the items condition), hence we get an exception.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/73930760","html_url":"https://github.com/afollestad/material-dialogs/issues/244#issuecomment-73930760","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/244","id":73930760,"user":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T18:03:29Z","updated_at":"2015-02-11T18:03:29Z","body":"0.6.2.4 is now available.\r\n\r\nhttps://github.com/afollestad/material-dialogs/releases/tag/v0.6.2.4\r\n\r\n@sagilo "}}