{"action":"closed","number":2247,"pull_request":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/2247","id":95326393,"html_url":"https://github.com/aspnet/Docs/pull/2247","diff_url":"https://github.com/aspnet/Docs/pull/2247.diff","patch_url":"https://github.com/aspnet/Docs/pull/2247.patch","issue_url":"https://api.github.com/repos/aspnet/Docs/issues/2247","number":2247,"state":"closed","locked":false,"title":"Fix null reference exception","user":{"login":"LeeDumond","id":729586,"avatar_url":"https://avatars.githubusercontent.com/u/729586?v=3","gravatar_id":"","url":"https://api.github.com/users/LeeDumond","html_url":"https://github.com/LeeDumond","followers_url":"https://api.github.com/users/LeeDumond/followers","following_url":"https://api.github.com/users/LeeDumond/following{/other_user}","gists_url":"https://api.github.com/users/LeeDumond/gists{/gist_id}","starred_url":"https://api.github.com/users/LeeDumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeeDumond/subscriptions","organizations_url":"https://api.github.com/users/LeeDumond/orgs","repos_url":"https://api.github.com/users/LeeDumond/repos","events_url":"https://api.github.com/users/LeeDumond/events{/privacy}","received_events_url":"https://api.github.com/users/LeeDumond/received_events","type":"User","site_admin":false},"body":"Line 146 runs inside of a block for which departmentToUpdate == null. Therefore, the attempt to read departmentToUpdate.InstructorID leads to a null reference exception.\r\n\r\nThe code is re-displaying the properties of the deletedDepartment, so the selected member of the select list should be deletedDepartment.InstructorID","created_at":"2016-11-25T16:16:46Z","updated_at":"2016-11-28T22:10:18Z","closed_at":"2016-11-28T22:10:18Z","merged_at":"2016-11-28T22:10:18Z","merge_commit_sha":"b0271a9126016215b65b95fa8d105e6588d5d503","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Docs/pulls/2247/commits","review_comments_url":"https://api.github.com/repos/aspnet/Docs/pulls/2247/comments","review_comment_url":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/2247/comments","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/172e6ace34d923d87c6e26ace436c1977f48b82e","head":{"label":"LeeDumond:patch-8","ref":"patch-8","sha":"172e6ace34d923d87c6e26ace436c1977f48b82e","user":{"login":"LeeDumond","id":729586,"avatar_url":"https://avatars.githubusercontent.com/u/729586?v=3","gravatar_id":"","url":"https://api.github.com/users/LeeDumond","html_url":"https://github.com/LeeDumond","followers_url":"https://api.github.com/users/LeeDumond/followers","following_url":"https://api.github.com/users/LeeDumond/following{/other_user}","gists_url":"https://api.github.com/users/LeeDumond/gists{/gist_id}","starred_url":"https://api.github.com/users/LeeDumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeeDumond/subscriptions","organizations_url":"https://api.github.com/users/LeeDumond/orgs","repos_url":"https://api.github.com/users/LeeDumond/repos","events_url":"https://api.github.com/users/LeeDumond/events{/privacy}","received_events_url":"https://api.github.com/users/LeeDumond/received_events","type":"User","site_admin":false},"repo":{"id":70927529,"name":"Docs","full_name":"LeeDumond/Docs","owner":{"login":"LeeDumond","id":729586,"avatar_url":"https://avatars.githubusercontent.com/u/729586?v=3","gravatar_id":"","url":"https://api.github.com/users/LeeDumond","html_url":"https://github.com/LeeDumond","followers_url":"https://api.github.com/users/LeeDumond/followers","following_url":"https://api.github.com/users/LeeDumond/following{/other_user}","gists_url":"https://api.github.com/users/LeeDumond/gists{/gist_id}","starred_url":"https://api.github.com/users/LeeDumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeeDumond/subscriptions","organizations_url":"https://api.github.com/users/LeeDumond/orgs","repos_url":"https://api.github.com/users/LeeDumond/repos","events_url":"https://api.github.com/users/LeeDumond/events{/privacy}","received_events_url":"https://api.github.com/users/LeeDumond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeeDumond/Docs","description":"Documentation for ASP.NET Core","fork":true,"url":"https://api.github.com/repos/LeeDumond/Docs","forks_url":"https://api.github.com/repos/LeeDumond/Docs/forks","keys_url":"https://api.github.com/repos/LeeDumond/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeeDumond/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeeDumond/Docs/teams","hooks_url":"https://api.github.com/repos/LeeDumond/Docs/hooks","issue_events_url":"https://api.github.com/repos/LeeDumond/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/LeeDumond/Docs/events","assignees_url":"https://api.github.com/repos/LeeDumond/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/LeeDumond/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/LeeDumond/Docs/tags","blobs_url":"https://api.github.com/repos/LeeDumond/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeeDumond/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeeDumond/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeeDumond/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeeDumond/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/LeeDumond/Docs/languages","stargazers_url":"https://api.github.com/repos/LeeDumond/Docs/stargazers","contributors_url":"https://api.github.com/repos/LeeDumond/Docs/contributors","subscribers_url":"https://api.github.com/repos/LeeDumond/Docs/subscribers","subscription_url":"https://api.github.com/repos/LeeDumond/Docs/subscription","commits_url":"https://api.github.com/repos/LeeDumond/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeeDumond/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeeDumond/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeeDumond/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeeDumond/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/LeeDumond/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeeDumond/Docs/merges","archive_url":"https://api.github.com/repos/LeeDumond/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeeDumond/Docs/downloads","issues_url":"https://api.github.com/repos/LeeDumond/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/LeeDumond/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/LeeDumond/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/LeeDumond/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeeDumond/Docs/labels{/name}","releases_url":"https://api.github.com/repos/LeeDumond/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/LeeDumond/Docs/deployments","created_at":"2016-10-14T16:22:56Z","updated_at":"2016-10-14T16:23:03Z","pushed_at":"2016-11-28T21:55:32Z","git_url":"git://github.com/LeeDumond/Docs.git","ssh_url":"git@github.com:LeeDumond/Docs.git","clone_url":"https://github.com/LeeDumond/Docs.git","svn_url":"https://github.com/LeeDumond/Docs","homepage":"","size":59367,"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":"aspnet:master","ref":"master","sha":"35ee38b03bdc10410dc1ceb9106354abac7c0c5c","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":28239455,"name":"Docs","full_name":"aspnet/Docs","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Docs","description":"Documentation for ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/Docs","forks_url":"https://api.github.com/repos/aspnet/Docs/forks","keys_url":"https://api.github.com/repos/aspnet/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Docs/teams","hooks_url":"https://api.github.com/repos/aspnet/Docs/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Docs/events","assignees_url":"https://api.github.com/repos/aspnet/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Docs/tags","blobs_url":"https://api.github.com/repos/aspnet/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Docs/languages","stargazers_url":"https://api.github.com/repos/aspnet/Docs/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Docs/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Docs/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Docs/subscription","commits_url":"https://api.github.com/repos/aspnet/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Docs/merges","archive_url":"https://api.github.com/repos/aspnet/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Docs/downloads","issues_url":"https://api.github.com/repos/aspnet/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Docs/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Docs/deployments","created_at":"2014-12-19T17:38:02Z","updated_at":"2016-11-28T21:54:47Z","pushed_at":"2016-11-28T22:10:18Z","git_url":"git://github.com/aspnet/Docs.git","ssh_url":"git@github.com:aspnet/Docs.git","clone_url":"https://github.com/aspnet/Docs.git","svn_url":"https://github.com/aspnet/Docs","homepage":"https://docs.microsoft.com/aspnet","size":76750,"stargazers_count":812,"watchers_count":812,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1696,"mirror_url":null,"open_issues_count":224,"forks":1696,"open_issues":224,"watchers":812,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2247"},"html":{"href":"https://github.com/aspnet/Docs/pull/2247"},"issue":{"href":"https://api.github.com/repos/aspnet/Docs/issues/2247"},"comments":{"href":"https://api.github.com/repos/aspnet/Docs/issues/2247/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2247/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2247/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Docs/statuses/172e6ace34d923d87c6e26ace436c1977f48b82e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tdykstra","id":1569635,"avatar_url":"https://avatars.githubusercontent.com/u/1569635?v=3","gravatar_id":"","url":"https://api.github.com/users/tdykstra","html_url":"https://github.com/tdykstra","followers_url":"https://api.github.com/users/tdykstra/followers","following_url":"https://api.github.com/users/tdykstra/following{/other_user}","gists_url":"https://api.github.com/users/tdykstra/gists{/gist_id}","starred_url":"https://api.github.com/users/tdykstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdykstra/subscriptions","organizations_url":"https://api.github.com/users/tdykstra/orgs","repos_url":"https://api.github.com/users/tdykstra/repos","events_url":"https://api.github.com/users/tdykstra/events{/privacy}","received_events_url":"https://api.github.com/users/tdykstra/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"tdykstra"}}