{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/roji/AsyncRewriter/pulls/7","id":36468504,"html_url":"https://github.com/roji/AsyncRewriter/pull/7","diff_url":"https://github.com/roji/AsyncRewriter/pull/7.diff","patch_url":"https://github.com/roji/AsyncRewriter/pull/7.patch","issue_url":"https://api.github.com/repos/roji/AsyncRewriter/issues/7","number":7,"state":"open","locked":false,"title":"Fix null reference exception when running under Mono","user":{"login":"franciscojunior","id":829924,"avatar_url":"https://avatars.githubusercontent.com/u/829924?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscojunior","html_url":"https://github.com/franciscojunior","followers_url":"https://api.github.com/users/franciscojunior/followers","following_url":"https://api.github.com/users/franciscojunior/following{/other_user}","gists_url":"https://api.github.com/users/franciscojunior/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscojunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscojunior/subscriptions","organizations_url":"https://api.github.com/users/franciscojunior/orgs","repos_url":"https://api.github.com/users/franciscojunior/repos","events_url":"https://api.github.com/users/franciscojunior/events{/privacy}","received_events_url":"https://api.github.com/users/franciscojunior/received_events","type":"User","site_admin":false},"body":"When running under Mono, Log property is null and then, Rewriter throws NullReferenceExceptions when trying to use the underlying Log. \r\n\r\nWhen Log is null, use the default Rewriter constructor which uses a Console logger.\r\n\r\n@roji , I tested this patch and it worked ok. It allowed me to compile Npgsql develop branch with Xamarin Studio on OSX. ","created_at":"2015-05-29T02:12:42Z","updated_at":"2015-05-29T02:12:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/roji/AsyncRewriter/pulls/7/commits","review_comments_url":"https://api.github.com/repos/roji/AsyncRewriter/pulls/7/comments","review_comment_url":"https://api.github.com/repos/roji/AsyncRewriter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/roji/AsyncRewriter/issues/7/comments","statuses_url":"https://api.github.com/repos/roji/AsyncRewriter/statuses/206b8de107e191f065ed304957dd6a5ccfdd6fbf","head":{"label":"franciscojunior:patch-1","ref":"patch-1","sha":"206b8de107e191f065ed304957dd6a5ccfdd6fbf","user":{"login":"franciscojunior","id":829924,"avatar_url":"https://avatars.githubusercontent.com/u/829924?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscojunior","html_url":"https://github.com/franciscojunior","followers_url":"https://api.github.com/users/franciscojunior/followers","following_url":"https://api.github.com/users/franciscojunior/following{/other_user}","gists_url":"https://api.github.com/users/franciscojunior/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscojunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscojunior/subscriptions","organizations_url":"https://api.github.com/users/franciscojunior/orgs","repos_url":"https://api.github.com/users/franciscojunior/repos","events_url":"https://api.github.com/users/franciscojunior/events{/privacy}","received_events_url":"https://api.github.com/users/franciscojunior/received_events","type":"User","site_admin":false},"repo":{"id":36477343,"name":"AsyncRewriter","full_name":"franciscojunior/AsyncRewriter","owner":{"login":"franciscojunior","id":829924,"avatar_url":"https://avatars.githubusercontent.com/u/829924?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscojunior","html_url":"https://github.com/franciscojunior","followers_url":"https://api.github.com/users/franciscojunior/followers","following_url":"https://api.github.com/users/franciscojunior/following{/other_user}","gists_url":"https://api.github.com/users/franciscojunior/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscojunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscojunior/subscriptions","organizations_url":"https://api.github.com/users/franciscojunior/orgs","repos_url":"https://api.github.com/users/franciscojunior/repos","events_url":"https://api.github.com/users/franciscojunior/events{/privacy}","received_events_url":"https://api.github.com/users/franciscojunior/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/franciscojunior/AsyncRewriter","description":"Uses Roslyn to rewrite synchronous C# methods into async counterparts","fork":true,"url":"https://api.github.com/repos/franciscojunior/AsyncRewriter","forks_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/forks","keys_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/teams","hooks_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/hooks","issue_events_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/issues/events{/number}","events_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/events","assignees_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/assignees{/user}","branches_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/branches{/branch}","tags_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/tags","blobs_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/git/refs{/sha}","trees_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/statuses/{sha}","languages_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/languages","stargazers_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/stargazers","contributors_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/contributors","subscribers_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/subscribers","subscription_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/subscription","commits_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/commits{/sha}","git_commits_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/git/commits{/sha}","comments_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/comments{/number}","issue_comment_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/issues/comments{/number}","contents_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/contents/{+path}","compare_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/merges","archive_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/downloads","issues_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/issues{/number}","pulls_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/pulls{/number}","milestones_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/milestones{/number}","notifications_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/labels{/name}","releases_url":"https://api.github.com/repos/franciscojunior/AsyncRewriter/releases{/id}","created_at":"2015-05-29T02:06:08Z","updated_at":"2015-05-29T02:06:08Z","pushed_at":"2015-05-29T02:11:27Z","git_url":"git://github.com/franciscojunior/AsyncRewriter.git","ssh_url":"git@github.com:franciscojunior/AsyncRewriter.git","clone_url":"https://github.com/franciscojunior/AsyncRewriter.git","svn_url":"https://github.com/franciscojunior/AsyncRewriter","homepage":"","size":208,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"roji:master","ref":"master","sha":"8735daa9edd88720b4f3f2c69d7af879a63a5c6d","user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"repo":{"id":33937466,"name":"AsyncRewriter","full_name":"roji/AsyncRewriter","owner":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roji/AsyncRewriter","description":"Uses Roslyn to rewrite synchronous C# methods into async counterparts","fork":false,"url":"https://api.github.com/repos/roji/AsyncRewriter","forks_url":"https://api.github.com/repos/roji/AsyncRewriter/forks","keys_url":"https://api.github.com/repos/roji/AsyncRewriter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roji/AsyncRewriter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roji/AsyncRewriter/teams","hooks_url":"https://api.github.com/repos/roji/AsyncRewriter/hooks","issue_events_url":"https://api.github.com/repos/roji/AsyncRewriter/issues/events{/number}","events_url":"https://api.github.com/repos/roji/AsyncRewriter/events","assignees_url":"https://api.github.com/repos/roji/AsyncRewriter/assignees{/user}","branches_url":"https://api.github.com/repos/roji/AsyncRewriter/branches{/branch}","tags_url":"https://api.github.com/repos/roji/AsyncRewriter/tags","blobs_url":"https://api.github.com/repos/roji/AsyncRewriter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roji/AsyncRewriter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roji/AsyncRewriter/git/refs{/sha}","trees_url":"https://api.github.com/repos/roji/AsyncRewriter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roji/AsyncRewriter/statuses/{sha}","languages_url":"https://api.github.com/repos/roji/AsyncRewriter/languages","stargazers_url":"https://api.github.com/repos/roji/AsyncRewriter/stargazers","contributors_url":"https://api.github.com/repos/roji/AsyncRewriter/contributors","subscribers_url":"https://api.github.com/repos/roji/AsyncRewriter/subscribers","subscription_url":"https://api.github.com/repos/roji/AsyncRewriter/subscription","commits_url":"https://api.github.com/repos/roji/AsyncRewriter/commits{/sha}","git_commits_url":"https://api.github.com/repos/roji/AsyncRewriter/git/commits{/sha}","comments_url":"https://api.github.com/repos/roji/AsyncRewriter/comments{/number}","issue_comment_url":"https://api.github.com/repos/roji/AsyncRewriter/issues/comments{/number}","contents_url":"https://api.github.com/repos/roji/AsyncRewriter/contents/{+path}","compare_url":"https://api.github.com/repos/roji/AsyncRewriter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roji/AsyncRewriter/merges","archive_url":"https://api.github.com/repos/roji/AsyncRewriter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roji/AsyncRewriter/downloads","issues_url":"https://api.github.com/repos/roji/AsyncRewriter/issues{/number}","pulls_url":"https://api.github.com/repos/roji/AsyncRewriter/pulls{/number}","milestones_url":"https://api.github.com/repos/roji/AsyncRewriter/milestones{/number}","notifications_url":"https://api.github.com/repos/roji/AsyncRewriter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roji/AsyncRewriter/labels{/name}","releases_url":"https://api.github.com/repos/roji/AsyncRewriter/releases{/id}","created_at":"2015-04-14T14:42:20Z","updated_at":"2015-05-08T07:00:11Z","pushed_at":"2015-05-08T07:00:10Z","git_url":"git://github.com/roji/AsyncRewriter.git","ssh_url":"git@github.com:roji/AsyncRewriter.git","clone_url":"https://github.com/roji/AsyncRewriter.git","svn_url":"https://github.com/roji/AsyncRewriter","homepage":"","size":208,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/roji/AsyncRewriter/pulls/7"},"html":{"href":"https://github.com/roji/AsyncRewriter/pull/7"},"issue":{"href":"https://api.github.com/repos/roji/AsyncRewriter/issues/7"},"comments":{"href":"https://api.github.com/repos/roji/AsyncRewriter/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/roji/AsyncRewriter/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/roji/AsyncRewriter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/roji/AsyncRewriter/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/roji/AsyncRewriter/statuses/206b8de107e191f065ed304957dd6a5ccfdd6fbf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}