{"action":"closed","issue":{"url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/issues/27","labels_url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/issues/27/comments","events_url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/issues/27/events","html_url":"https://github.com/mrwonderman/android-square-progressbar/issues/27","id":73978681,"number":27,"title":"NPE on the setImageScaleType(ImageView.ScaleType.CENTER);","user":{"login":"gordonpro","id":4123506,"avatar_url":"https://avatars.githubusercontent.com/u/4123506?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonpro","html_url":"https://github.com/gordonpro","followers_url":"https://api.github.com/users/gordonpro/followers","following_url":"https://api.github.com/users/gordonpro/following{/other_user}","gists_url":"https://api.github.com/users/gordonpro/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonpro/subscriptions","organizations_url":"https://api.github.com/users/gordonpro/orgs","repos_url":"https://api.github.com/users/gordonpro/repos","events_url":"https://api.github.com/users/gordonpro/events{/privacy}","received_events_url":"https://api.github.com/users/gordonpro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/labels/fixed","name":"fixed","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"mrwonderman","id":2305653,"avatar_url":"https://avatars.githubusercontent.com/u/2305653?v=3","gravatar_id":"","url":"https://api.github.com/users/mrwonderman","html_url":"https://github.com/mrwonderman","followers_url":"https://api.github.com/users/mrwonderman/followers","following_url":"https://api.github.com/users/mrwonderman/following{/other_user}","gists_url":"https://api.github.com/users/mrwonderman/gists{/gist_id}","starred_url":"https://api.github.com/users/mrwonderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrwonderman/subscriptions","organizations_url":"https://api.github.com/users/mrwonderman/orgs","repos_url":"https://api.github.com/users/mrwonderman/repos","events_url":"https://api.github.com/users/mrwonderman/events{/privacy}","received_events_url":"https://api.github.com/users/mrwonderman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/milestones/6","html_url":"https://github.com/mrwonderman/android-square-progressbar/milestones/1.5.2","labels_url":"https://api.github.com/repos/mrwonderman/android-square-progressbar/milestones/6/labels","id":1102938,"number":6,"title":"1.5.2","description":"Bug fix version","creator":{"login":"mrwonderman","id":2305653,"avatar_url":"https://avatars.githubusercontent.com/u/2305653?v=3","gravatar_id":"","url":"https://api.github.com/users/mrwonderman","html_url":"https://github.com/mrwonderman","followers_url":"https://api.github.com/users/mrwonderman/followers","following_url":"https://api.github.com/users/mrwonderman/following{/other_user}","gists_url":"https://api.github.com/users/mrwonderman/gists{/gist_id}","starred_url":"https://api.github.com/users/mrwonderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrwonderman/subscriptions","organizations_url":"https://api.github.com/users/mrwonderman/orgs","repos_url":"https://api.github.com/users/mrwonderman/repos","events_url":"https://api.github.com/users/mrwonderman/events{/privacy}","received_events_url":"https://api.github.com/users/mrwonderman/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"open","created_at":"2015-05-09T04:27:00Z","updated_at":"2015-05-17T08:13:57Z","due_on":"2015-05-16T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-05-07T13:00:05Z","updated_at":"2015-05-17T08:13:57Z","closed_at":"2015-05-17T08:13:57Z","body":"Why the image reference assigning after constructor called. It may cause NPE if someone calls setImageScaleType before setting an image.\r\nsquareprogressbar 93 line\r\n```\r\n\r\n\tpublic void setImage(int image) {\r\n\t\timageView = (ImageView) findViewById(R.id.imageView1);\r\n\t\timageView.setImageResource(image);\r\n\r\n\t}\r\n\r\n```"}}