{"action":"created","comment":{"url":"https://api.github.com/repos/celements/celements-course/pulls/comments/82135581","pull_request_review_id":3062948,"id":82135581,"diff_hunk":"@@ -74,9 +75,13 @@ public DocumentReference getCourseTypeForCourse(DocumentReference courseDocRef)\n       throws XWikiException {\n     DocumentReference typeDocRef = null;\n     WikiReference wikiRef = webUtilsService.getWikiRef(courseDocRef);\n-    XWikiDocument courseDoc = getContext().getWiki().getDocument(courseDocRef, getContext());\n-    BaseObject courseObj = courseDoc.getXObject(getCourseClasses().getCourseClassRef(\n-        wikiRef.getName()));\n+    BaseObject courseObj = null;\n+    try {\n+      courseObj = modelAccess.getXObject(courseDocRef, getCourseClasses().getCourseClassRef(\n+          wikiRef.getName()));\n+    } catch (DocumentNotExistsException dnee) {\n+      LOGGER.error(\"getCourseTypeForCourse: Course document {} does not exist\", courseDocRef, dnee);\n+    }\n     if (courseObj != null) {","path":"src/main/java/com/celements/course/service/CourseService.java","position":91,"original_position":22,"commit_id":"286c216ee63a13abb6b98c7ddf61beaf21fed5a6","original_commit_id":"286c216ee63a13abb6b98c7ddf61beaf21fed5a6","user":{"login":"fpichler","id":777336,"avatar_url":"https://avatars.githubusercontent.com/u/777336?v=3","gravatar_id":"","url":"https://api.github.com/users/fpichler","html_url":"https://github.com/fpichler","followers_url":"https://api.github.com/users/fpichler/followers","following_url":"https://api.github.com/users/fpichler/following{/other_user}","gists_url":"https://api.github.com/users/fpichler/gists{/gist_id}","starred_url":"https://api.github.com/users/fpichler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpichler/subscriptions","organizations_url":"https://api.github.com/users/fpichler/orgs","repos_url":"https://api.github.com/users/fpichler/repos","events_url":"https://api.github.com/users/fpichler/events{/privacy}","received_events_url":"https://api.github.com/users/fpichler/received_events","type":"User","site_admin":false},"body":"please move into try block.","created_at":"2016-10-06T08:07:57Z","updated_at":"2016-10-06T08:49:22Z","html_url":"https://github.com/celements/celements-course/pull/2#discussion_r82135581","pull_request_url":"https://api.github.com/repos/celements/celements-course/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/celements/celements-course/pulls/comments/82135581"},"html":{"href":"https://github.com/celements/celements-course/pull/2#discussion_r82135581"},"pull_request":{"href":"https://api.github.com/repos/celements/celements-course/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/celements/celements-course/pulls/2","id":87921138,"html_url":"https://github.com/celements/celements-course/pull/2","diff_url":"https://github.com/celements/celements-course/pull/2.diff","patch_url":"https://github.com/celements/celements-course/pull/2.patch","issue_url":"https://api.github.com/repos/celements/celements-course/issues/2","number":2,"state":"open","locked":false,"title":"Feature event registration","user":{"login":"ebeutler","id":777164,"avatar_url":"https://avatars.githubusercontent.com/u/777164?v=3","gravatar_id":"","url":"https://api.github.com/users/ebeutler","html_url":"https://github.com/ebeutler","followers_url":"https://api.github.com/users/ebeutler/followers","following_url":"https://api.github.com/users/ebeutler/following{/other_user}","gists_url":"https://api.github.com/users/ebeutler/gists{/gist_id}","starred_url":"https://api.github.com/users/ebeutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebeutler/subscriptions","organizations_url":"https://api.github.com/users/ebeutler/orgs","repos_url":"https://api.github.com/users/ebeutler/repos","events_url":"https://api.github.com/users/ebeutler/events{/privacy}","received_events_url":"https://api.github.com/users/ebeutler/received_events","type":"User","site_admin":false},"body":"First, basic, implementation for event attendance registration","created_at":"2016-10-04T15:45:29Z","updated_at":"2016-10-06T08:49:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1e111d4f686a0be924dc27b7639f00217ba0ef8","assignee":{"login":"fpichler","id":777336,"avatar_url":"https://avatars.githubusercontent.com/u/777336?v=3","gravatar_id":"","url":"https://api.github.com/users/fpichler","html_url":"https://github.com/fpichler","followers_url":"https://api.github.com/users/fpichler/followers","following_url":"https://api.github.com/users/fpichler/following{/other_user}","gists_url":"https://api.github.com/users/fpichler/gists{/gist_id}","starred_url":"https://api.github.com/users/fpichler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpichler/subscriptions","organizations_url":"https://api.github.com/users/fpichler/orgs","repos_url":"https://api.github.com/users/fpichler/repos","events_url":"https://api.github.com/users/fpichler/events{/privacy}","received_events_url":"https://api.github.com/users/fpichler/received_events","type":"User","site_admin":false},"assignees":[{"login":"fpichler","id":777336,"avatar_url":"https://avatars.githubusercontent.com/u/777336?v=3","gravatar_id":"","url":"https://api.github.com/users/fpichler","html_url":"https://github.com/fpichler","followers_url":"https://api.github.com/users/fpichler/followers","following_url":"https://api.github.com/users/fpichler/following{/other_user}","gists_url":"https://api.github.com/users/fpichler/gists{/gist_id}","starred_url":"https://api.github.com/users/fpichler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpichler/subscriptions","organizations_url":"https://api.github.com/users/fpichler/orgs","repos_url":"https://api.github.com/users/fpichler/repos","events_url":"https://api.github.com/users/fpichler/events{/privacy}","received_events_url":"https://api.github.com/users/fpichler/received_events","type":"User","site_admin":false},{"login":"msladek","id":1436305,"avatar_url":"https://avatars.githubusercontent.com/u/1436305?v=3","gravatar_id":"","url":"https://api.github.com/users/msladek","html_url":"https://github.com/msladek","followers_url":"https://api.github.com/users/msladek/followers","following_url":"https://api.github.com/users/msladek/following{/other_user}","gists_url":"https://api.github.com/users/msladek/gists{/gist_id}","starred_url":"https://api.github.com/users/msladek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msladek/subscriptions","organizations_url":"https://api.github.com/users/msladek/orgs","repos_url":"https://api.github.com/users/msladek/repos","events_url":"https://api.github.com/users/msladek/events{/privacy}","received_events_url":"https://api.github.com/users/msladek/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/celements/celements-course/pulls/2/commits","review_comments_url":"https://api.github.com/repos/celements/celements-course/pulls/2/comments","review_comment_url":"https://api.github.com/repos/celements/celements-course/pulls/comments{/number}","comments_url":"https://api.github.com/repos/celements/celements-course/issues/2/comments","statuses_url":"https://api.github.com/repos/celements/celements-course/statuses/286c216ee63a13abb6b98c7ddf61beaf21fed5a6","head":{"label":"celements:feature_eventRegistration","ref":"feature_eventRegistration","sha":"286c216ee63a13abb6b98c7ddf61beaf21fed5a6","user":{"login":"celements","id":866913,"avatar_url":"https://avatars.githubusercontent.com/u/866913?v=3","gravatar_id":"","url":"https://api.github.com/users/celements","html_url":"https://github.com/celements","followers_url":"https://api.github.com/users/celements/followers","following_url":"https://api.github.com/users/celements/following{/other_user}","gists_url":"https://api.github.com/users/celements/gists{/gist_id}","starred_url":"https://api.github.com/users/celements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celements/subscriptions","organizations_url":"https://api.github.com/users/celements/orgs","repos_url":"https://api.github.com/users/celements/repos","events_url":"https://api.github.com/users/celements/events{/privacy}","received_events_url":"https://api.github.com/users/celements/received_events","type":"Organization","site_admin":false},"repo":{"id":2747975,"name":"celements-course","full_name":"celements/celements-course","owner":{"login":"celements","id":866913,"avatar_url":"https://avatars.githubusercontent.com/u/866913?v=3","gravatar_id":"","url":"https://api.github.com/users/celements","html_url":"https://github.com/celements","followers_url":"https://api.github.com/users/celements/followers","following_url":"https://api.github.com/users/celements/following{/other_user}","gists_url":"https://api.github.com/users/celements/gists{/gist_id}","starred_url":"https://api.github.com/users/celements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celements/subscriptions","organizations_url":"https://api.github.com/users/celements/orgs","repos_url":"https://api.github.com/users/celements/repos","events_url":"https://api.github.com/users/celements/events{/privacy}","received_events_url":"https://api.github.com/users/celements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/celements/celements-course","description":"Administration of courses ","fork":false,"url":"https://api.github.com/repos/celements/celements-course","forks_url":"https://api.github.com/repos/celements/celements-course/forks","keys_url":"https://api.github.com/repos/celements/celements-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celements/celements-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celements/celements-course/teams","hooks_url":"https://api.github.com/repos/celements/celements-course/hooks","issue_events_url":"https://api.github.com/repos/celements/celements-course/issues/events{/number}","events_url":"https://api.github.com/repos/celements/celements-course/events","assignees_url":"https://api.github.com/repos/celements/celements-course/assignees{/user}","branches_url":"https://api.github.com/repos/celements/celements-course/branches{/branch}","tags_url":"https://api.github.com/repos/celements/celements-course/tags","blobs_url":"https://api.github.com/repos/celements/celements-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celements/celements-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celements/celements-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/celements/celements-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celements/celements-course/statuses/{sha}","languages_url":"https://api.github.com/repos/celements/celements-course/languages","stargazers_url":"https://api.github.com/repos/celements/celements-course/stargazers","contributors_url":"https://api.github.com/repos/celements/celements-course/contributors","subscribers_url":"https://api.github.com/repos/celements/celements-course/subscribers","subscription_url":"https://api.github.com/repos/celements/celements-course/subscription","commits_url":"https://api.github.com/repos/celements/celements-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/celements/celements-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/celements/celements-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/celements/celements-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/celements/celements-course/contents/{+path}","compare_url":"https://api.github.com/repos/celements/celements-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celements/celements-course/merges","archive_url":"https://api.github.com/repos/celements/celements-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celements/celements-course/downloads","issues_url":"https://api.github.com/repos/celements/celements-course/issues{/number}","pulls_url":"https://api.github.com/repos/celements/celements-course/pulls{/number}","milestones_url":"https://api.github.com/repos/celements/celements-course/milestones{/number}","notifications_url":"https://api.github.com/repos/celements/celements-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celements/celements-course/labels{/name}","releases_url":"https://api.github.com/repos/celements/celements-course/releases{/id}","deployments_url":"https://api.github.com/repos/celements/celements-course/deployments","created_at":"2011-11-10T10:58:13Z","updated_at":"2016-08-25T15:57:12Z","pushed_at":"2016-10-06T08:46:37Z","git_url":"git://github.com/celements/celements-course.git","ssh_url":"git@github.com:celements/celements-course.git","clone_url":"https://github.com/celements/celements-course.git","svn_url":"https://github.com/celements/celements-course","homepage":"","size":116,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"dev"}},"base":{"label":"celements:dev","ref":"dev","sha":"cfe02f3bf25962275e301a0ae98e73dc481e4631","user":{"login":"celements","id":866913,"avatar_url":"https://avatars.githubusercontent.com/u/866913?v=3","gravatar_id":"","url":"https://api.github.com/users/celements","html_url":"https://github.com/celements","followers_url":"https://api.github.com/users/celements/followers","following_url":"https://api.github.com/users/celements/following{/other_user}","gists_url":"https://api.github.com/users/celements/gists{/gist_id}","starred_url":"https://api.github.com/users/celements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celements/subscriptions","organizations_url":"https://api.github.com/users/celements/orgs","repos_url":"https://api.github.com/users/celements/repos","events_url":"https://api.github.com/users/celements/events{/privacy}","received_events_url":"https://api.github.com/users/celements/received_events","type":"Organization","site_admin":false},"repo":{"id":2747975,"name":"celements-course","full_name":"celements/celements-course","owner":{"login":"celements","id":866913,"avatar_url":"https://avatars.githubusercontent.com/u/866913?v=3","gravatar_id":"","url":"https://api.github.com/users/celements","html_url":"https://github.com/celements","followers_url":"https://api.github.com/users/celements/followers","following_url":"https://api.github.com/users/celements/following{/other_user}","gists_url":"https://api.github.com/users/celements/gists{/gist_id}","starred_url":"https://api.github.com/users/celements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celements/subscriptions","organizations_url":"https://api.github.com/users/celements/orgs","repos_url":"https://api.github.com/users/celements/repos","events_url":"https://api.github.com/users/celements/events{/privacy}","received_events_url":"https://api.github.com/users/celements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/celements/celements-course","description":"Administration of courses ","fork":false,"url":"https://api.github.com/repos/celements/celements-course","forks_url":"https://api.github.com/repos/celements/celements-course/forks","keys_url":"https://api.github.com/repos/celements/celements-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celements/celements-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celements/celements-course/teams","hooks_url":"https://api.github.com/repos/celements/celements-course/hooks","issue_events_url":"https://api.github.com/repos/celements/celements-course/issues/events{/number}","events_url":"https://api.github.com/repos/celements/celements-course/events","assignees_url":"https://api.github.com/repos/celements/celements-course/assignees{/user}","branches_url":"https://api.github.com/repos/celements/celements-course/branches{/branch}","tags_url":"https://api.github.com/repos/celements/celements-course/tags","blobs_url":"https://api.github.com/repos/celements/celements-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celements/celements-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celements/celements-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/celements/celements-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celements/celements-course/statuses/{sha}","languages_url":"https://api.github.com/repos/celements/celements-course/languages","stargazers_url":"https://api.github.com/repos/celements/celements-course/stargazers","contributors_url":"https://api.github.com/repos/celements/celements-course/contributors","subscribers_url":"https://api.github.com/repos/celements/celements-course/subscribers","subscription_url":"https://api.github.com/repos/celements/celements-course/subscription","commits_url":"https://api.github.com/repos/celements/celements-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/celements/celements-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/celements/celements-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/celements/celements-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/celements/celements-course/contents/{+path}","compare_url":"https://api.github.com/repos/celements/celements-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celements/celements-course/merges","archive_url":"https://api.github.com/repos/celements/celements-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celements/celements-course/downloads","issues_url":"https://api.github.com/repos/celements/celements-course/issues{/number}","pulls_url":"https://api.github.com/repos/celements/celements-course/pulls{/number}","milestones_url":"https://api.github.com/repos/celements/celements-course/milestones{/number}","notifications_url":"https://api.github.com/repos/celements/celements-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celements/celements-course/labels{/name}","releases_url":"https://api.github.com/repos/celements/celements-course/releases{/id}","deployments_url":"https://api.github.com/repos/celements/celements-course/deployments","created_at":"2011-11-10T10:58:13Z","updated_at":"2016-08-25T15:57:12Z","pushed_at":"2016-10-06T08:46:37Z","git_url":"git://github.com/celements/celements-course.git","ssh_url":"git@github.com:celements/celements-course.git","clone_url":"https://github.com/celements/celements-course.git","svn_url":"https://github.com/celements/celements-course","homepage":"","size":116,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/celements/celements-course/pulls/2"},"html":{"href":"https://github.com/celements/celements-course/pull/2"},"issue":{"href":"https://api.github.com/repos/celements/celements-course/issues/2"},"comments":{"href":"https://api.github.com/repos/celements/celements-course/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/celements/celements-course/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/celements/celements-course/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/celements/celements-course/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/celements/celements-course/statuses/286c216ee63a13abb6b98c7ddf61beaf21fed5a6"}}}}
{"actor":{"display_login":"fpichler"}}