{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/467","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/467/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/467/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/467","id":94361228,"number":467,"title":"Setting the ProfileIcon after loading","user":{"login":"stratbasher","id":4118916,"avatar_url":"https://avatars.githubusercontent.com/u/4118916?v=3","gravatar_id":"","url":"https://api.github.com/users/stratbasher","html_url":"https://github.com/stratbasher","followers_url":"https://api.github.com/users/stratbasher/followers","following_url":"https://api.github.com/users/stratbasher/following{/other_user}","gists_url":"https://api.github.com/users/stratbasher/gists{/gist_id}","starred_url":"https://api.github.com/users/stratbasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratbasher/subscriptions","organizations_url":"https://api.github.com/users/stratbasher/orgs","repos_url":"https://api.github.com/users/stratbasher/repos","events_url":"https://api.github.com/users/stratbasher/events{/privacy}","received_events_url":"https://api.github.com/users/stratbasher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-07-10T18:11:24Z","updated_at":"2015-07-10T19:26:54Z","closed_at":"2015-07-10T18:24:13Z","body":"Hello,\r\n\r\nI am needing to use an ASyncTask to load my profile image + cache it. The problem is that I can't seem to get the ImageView of the profile icon.\r\n\r\nHeres my code\r\n\r\n    Drawer drawer = new DrawerBuilder()/*insert options here*/.build();\r\n    LinearLayout header = (LinearLayout)drawer.getHeader();\r\n    ImageView profileIconImageView = (ImageView)header.findViewById(R.id.profileIcon);\r\n    profileIconImageView.setImageBitmap(picture); //Heres where the error starts. NullPointerExceptoin trying to invoke setImageBitmap on null object reference\r\n\r\nIt seems that header.findViewById() cannot find R.id.profileIcon, so I can't set it. Is there any way to do this?\r\n    "},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/120502180","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/467#issuecomment-120502180","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/467","id":120502180,"user":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T19:26:54Z","updated_at":"2015-07-10T19:26:54Z","body":"Probably you should do this:\r\n\r\n`DrawerImageLoader.init(new CustomIDrawerImageLoader(this.employee, MainActivity.this));`\r\n\r\nbefore creating the header?"}}