{"action":"created","issue":{"url":"https://api.github.com/repos/ooyala/barkeep/issues/444","labels_url":"https://api.github.com/repos/ooyala/barkeep/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/ooyala/barkeep/issues/444/comments","events_url":"https://api.github.com/repos/ooyala/barkeep/issues/444/events","html_url":"https://github.com/ooyala/barkeep/pull/444","id":14582368,"number":444,"title":"Fixing error: NoMethodError - undefined method `gsub' for nil:NilClass","user":{"login":"squaresurf","id":863076,"avatar_url":"https://avatars.githubusercontent.com/u/863076?v=3","gravatar_id":"","url":"https://api.github.com/users/squaresurf","html_url":"https://github.com/squaresurf","followers_url":"https://api.github.com/users/squaresurf/followers","following_url":"https://api.github.com/users/squaresurf/following{/other_user}","gists_url":"https://api.github.com/users/squaresurf/gists{/gist_id}","starred_url":"https://api.github.com/users/squaresurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squaresurf/subscriptions","organizations_url":"https://api.github.com/users/squaresurf/orgs","repos_url":"https://api.github.com/users/squaresurf/repos","events_url":"https://api.github.com/users/squaresurf/events{/privacy}","received_events_url":"https://api.github.com/users/squaresurf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-05-21T18:15:55Z","updated_at":"2015-09-15T13:13:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ooyala/barkeep/pulls/444","html_url":"https://github.com/ooyala/barkeep/pull/444","diff_url":"https://github.com/ooyala/barkeep/pull/444.diff","patch_url":"https://github.com/ooyala/barkeep/pull/444.patch"},"body":"I was getting an error in lib/syntax_highlighter.rb where \r\n```ruby\r\nSyntaxHighlighter.pygmentize(file_type, blob.data)\r\n```\r\nwas returning nil and thus throwing an error in\r\n```ruby\r\ndef self.global_highlighting(pygmentized_text)\r\n```\r\nwhen it tried to call the gsub method on the nil object.\r\n\r\nI'm primarily a PHP developer so please feel free to school me on Ruby methodologies that I may have screwed up."},"comment":{"url":"https://api.github.com/repos/ooyala/barkeep/issues/comments/140383543","html_url":"https://github.com/ooyala/barkeep/pull/444#issuecomment-140383543","issue_url":"https://api.github.com/repos/ooyala/barkeep/issues/444","id":140383543,"user":{"login":"squaresurf","id":863076,"avatar_url":"https://avatars.githubusercontent.com/u/863076?v=3","gravatar_id":"","url":"https://api.github.com/users/squaresurf","html_url":"https://github.com/squaresurf","followers_url":"https://api.github.com/users/squaresurf/followers","following_url":"https://api.github.com/users/squaresurf/following{/other_user}","gists_url":"https://api.github.com/users/squaresurf/gists{/gist_id}","starred_url":"https://api.github.com/users/squaresurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squaresurf/subscriptions","organizations_url":"https://api.github.com/users/squaresurf/orgs","repos_url":"https://api.github.com/users/squaresurf/repos","events_url":"https://api.github.com/users/squaresurf/events{/privacy}","received_events_url":"https://api.github.com/users/squaresurf/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T13:13:18Z","updated_at":"2015-09-15T13:13:18Z","body":"ping"}}