{"action":"created","issue":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/issues/2","labels_url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/issues/2/comments","events_url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/issues/2/events","html_url":"https://github.com/ashwanthkumar/gocd-janitor/pull/2","id":119067775,"number":2,"title":"Amend if files are null then return Null rather than exception","user":{"login":"wingZero21","id":5137059,"avatar_url":"https://avatars.githubusercontent.com/u/5137059?v=3","gravatar_id":"","url":"https://api.github.com/users/wingZero21","html_url":"https://github.com/wingZero21","followers_url":"https://api.github.com/users/wingZero21/followers","following_url":"https://api.github.com/users/wingZero21/following{/other_user}","gists_url":"https://api.github.com/users/wingZero21/gists{/gist_id}","starred_url":"https://api.github.com/users/wingZero21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wingZero21/subscriptions","organizations_url":"https://api.github.com/users/wingZero21/orgs","repos_url":"https://api.github.com/users/wingZero21/repos","events_url":"https://api.github.com/users/wingZero21/events{/privacy}","received_events_url":"https://api.github.com/users/wingZero21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T15:46:02Z","updated_at":"2015-11-26T15:52:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/pulls/2","html_url":"https://github.com/ashwanthkumar/gocd-janitor/pull/2","diff_url":"https://github.com/ashwanthkumar/gocd-janitor/pull/2.diff","patch_url":"https://github.com/ashwanthkumar/gocd-janitor/pull/2.patch"},"body":"Amendment to stop error if there are no pipeline directories present."},"comment":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/issues/comments/159946162","html_url":"https://github.com/ashwanthkumar/gocd-janitor/pull/2#issuecomment-159946162","issue_url":"https://api.github.com/repos/ashwanthkumar/gocd-janitor/issues/2","id":159946162,"user":{"login":"ashwanthkumar","id":600279,"avatar_url":"https://avatars.githubusercontent.com/u/600279?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwanthkumar","html_url":"https://github.com/ashwanthkumar","followers_url":"https://api.github.com/users/ashwanthkumar/followers","following_url":"https://api.github.com/users/ashwanthkumar/following{/other_user}","gists_url":"https://api.github.com/users/ashwanthkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwanthkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwanthkumar/subscriptions","organizations_url":"https://api.github.com/users/ashwanthkumar/orgs","repos_url":"https://api.github.com/users/ashwanthkumar/repos","events_url":"https://api.github.com/users/ashwanthkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ashwanthkumar/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T15:52:55Z","updated_at":"2015-11-26T15:52:55Z","body":"@wingZero21 This will cause NullPointerException to be thrown when the result is being consumed by the next for-loop. We should return an empty array instead of a null. "}}