{"action":"opened","issue":{"url":"https://api.github.com/repos/mikepenz/Android-ActionItemBadge/issues/19","labels_url":"https://api.github.com/repos/mikepenz/Android-ActionItemBadge/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/Android-ActionItemBadge/issues/19/comments","events_url":"https://api.github.com/repos/mikepenz/Android-ActionItemBadge/issues/19/events","html_url":"https://github.com/mikepenz/Android-ActionItemBadge/issues/19","id":86858611,"number":19,"title":"getting null pointer exception","user":{"login":"Aviswanathan","id":11286504,"avatar_url":"https://avatars.githubusercontent.com/u/11286504?v=3","gravatar_id":"","url":"https://api.github.com/users/Aviswanathan","html_url":"https://github.com/Aviswanathan","followers_url":"https://api.github.com/users/Aviswanathan/followers","following_url":"https://api.github.com/users/Aviswanathan/following{/other_user}","gists_url":"https://api.github.com/users/Aviswanathan/gists{/gist_id}","starred_url":"https://api.github.com/users/Aviswanathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aviswanathan/subscriptions","organizations_url":"https://api.github.com/users/Aviswanathan/orgs","repos_url":"https://api.github.com/users/Aviswanathan/repos","events_url":"https://api.github.com/users/Aviswanathan/events{/privacy}","received_events_url":"https://api.github.com/users/Aviswanathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T06:27:42Z","updated_at":"2015-06-10T06:27:42Z","closed_at":null,"body":"in my menu xml i placed this..\r\n<item android:id=\"@+id/action_carticon\" android:title=\"@string/action_example\"\r\n        app:showAsAction=\"always\"\r\n        android:orderInCategory=\"100\"\r\n        android:actionLayout=\"@layout/menu_badge\"\r\n\r\n        />\r\nand in my create options menu i used this \r\n ActionItemBadge.update(this, menu.findItem(R.id.action_carticon), getResources().getDrawable(R.drawable.ic_launcher), ActionItemBadge.BadgeStyle.GREEN,5);\r\nwhat i done wrong if i create menu item programatically works great.if the count is zero need to hide the item badge.is there any possible. \r\n"}}