{"action":"opened","issue":{"url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/14","labels_url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/14/comments","events_url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/14/events","html_url":"https://github.com/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/14","id":100283233,"number":14,"title":"preference.getIcon() referencing a null object","user":{"login":"Tomblarom","id":12703270,"avatar_url":"https://avatars.githubusercontent.com/u/12703270?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomblarom","html_url":"https://github.com/Tomblarom","followers_url":"https://api.github.com/users/Tomblarom/followers","following_url":"https://api.github.com/users/Tomblarom/following{/other_user}","gists_url":"https://api.github.com/users/Tomblarom/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomblarom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomblarom/subscriptions","organizations_url":"https://api.github.com/users/Tomblarom/orgs","repos_url":"https://api.github.com/users/Tomblarom/repos","events_url":"https://api.github.com/users/Tomblarom/events{/privacy}","received_events_url":"https://api.github.com/users/Tomblarom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-11T10:31:50Z","updated_at":"2015-08-11T10:31:50Z","closed_at":null,"body":"I tried to tint the peference icon:\r\n\r\n    <com.lb.material_preferences_library.custom_preferences.Preference\r\n        android:summary=\"@string/scanmode_sum\"\r\n        android:key=\"scanmode\"\r\n        app:icon=\"@drawable/ic_scan\"/>\r\n\r\n**and getting:**\r\n\r\n    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setTint(int)' on a null object reference"}}