{"action":"created","comment":{"url":"https://api.github.com/repos/eXist-db/exist/pulls/comments/145251283","pull_request_review_id":70024999,"id":145251283,"diff_hunk":"@@ -163,6 +163,9 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathExce\n                     final int collectionId = absoluteId.and(BigInteger.valueOf(0xFFFFFFFF)).intValue();\n                     \n                     doc = context.getBroker().getResourceById(collectionId, resourceType, documentId);\n+                    if (doc == null) {","path":"src/org/exist/xquery/functions/util/DocumentNameOrId.java","position":4,"original_position":4,"commit_id":"3563a51b936499fb1fd43457f39533b8b1209230","original_commit_id":"3563a51b936499fb1fd43457f39533b8b1209230","user":{"login":"line-o","id":657222,"avatar_url":"https://avatars0.githubusercontent.com/u/657222?v=4","gravatar_id":"","url":"https://api.github.com/users/line-o","html_url":"https://github.com/line-o","followers_url":"https://api.github.com/users/line-o/followers","following_url":"https://api.github.com/users/line-o/following{/other_user}","gists_url":"https://api.github.com/users/line-o/gists{/gist_id}","starred_url":"https://api.github.com/users/line-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/line-o/subscriptions","organizations_url":"https://api.github.com/users/line-o/orgs","repos_url":"https://api.github.com/users/line-o/repos","events_url":"https://api.github.com/users/line-o/events{/privacy}","received_events_url":"https://api.github.com/users/line-o/received_events","type":"User","site_admin":false},"body":"Will do that","created_at":"2017-10-17T20:46:55Z","updated_at":"2017-10-17T20:46:55Z","html_url":"https://github.com/eXist-db/exist/pull/1595#discussion_r145251283","pull_request_url":"https://api.github.com/repos/eXist-db/exist/pulls/1595","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/eXist-db/exist/pulls/comments/145251283"},"html":{"href":"https://github.com/eXist-db/exist/pull/1595#discussion_r145251283"},"pull_request":{"href":"https://api.github.com/repos/eXist-db/exist/pulls/1595"}},"in_reply_to_id":145119392},"pull_request":{"url":"https://api.github.com/repos/eXist-db/exist/pulls/1595","id":146862397,"html_url":"https://github.com/eXist-db/exist/pull/1595","diff_url":"https://github.com/eXist-db/exist/pull/1595.diff","patch_url":"https://github.com/eXist-db/exist/pull/1595.patch","issue_url":"https://api.github.com/repos/eXist-db/exist/issues/1595","number":1595,"state":"open","locked":false,"title":"WIP fix: prevent error in util:get-document-by-absolute-id","user":{"login":"line-o","id":657222,"avatar_url":"https://avatars0.githubusercontent.com/u/657222?v=4","gravatar_id":"","url":"https://api.github.com/users/line-o","html_url":"https://github.com/line-o","followers_url":"https://api.github.com/users/line-o/followers","following_url":"https://api.github.com/users/line-o/following{/other_user}","gists_url":"https://api.github.com/users/line-o/gists{/gist_id}","starred_url":"https://api.github.com/users/line-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/line-o/subscriptions","organizations_url":"https://api.github.com/users/line-o/orgs","repos_url":"https://api.github.com/users/line-o/repos","events_url":"https://api.github.com/users/line-o/events{/privacy}","received_events_url":"https://api.github.com/users/line-o/received_events","type":"User","site_admin":false},"body":"### Description:\r\n\r\n`util:get-document-by-absolute-id` returns an empty sequence if document was not found instead of throwing an error.\r\n\r\n### Reference:\r\n\r\nnone\r\n\r\n### Type of tests:\r\n\r\nTBD\r\n","created_at":"2017-10-16T19:01:23Z","updated_at":"2017-10-17T20:46:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9019eaf900140cf92f03c29c629bd8d3ae8904c","assignee":{"login":"adamretter","id":1264057,"avatar_url":"https://avatars1.githubusercontent.com/u/1264057?v=4","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false},"assignees":[{"login":"adamretter","id":1264057,"avatar_url":"https://avatars1.githubusercontent.com/u/1264057?v=4","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/eXist-db/exist/milestones/17","html_url":"https://github.com/eXist-db/exist/milestone/17","labels_url":"https://api.github.com/repos/eXist-db/exist/milestones/17/labels","id":2804299,"number":17,"title":"eXist-3.5.1","description":"","creator":{"login":"adamretter","id":1264057,"avatar_url":"https://avatars1.githubusercontent.com/u/1264057?v=4","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":3,"state":"open","created_at":"2017-09-30T10:55:23Z","updated_at":"2017-10-17T19:16:55Z","due_on":"2017-11-27T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/eXist-db/exist/pulls/1595/commits","review_comments_url":"https://api.github.com/repos/eXist-db/exist/pulls/1595/comments","review_comment_url":"https://api.github.com/repos/eXist-db/exist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eXist-db/exist/issues/1595/comments","statuses_url":"https://api.github.com/repos/eXist-db/exist/statuses/3563a51b936499fb1fd43457f39533b8b1209230","head":{"label":"eXist-db:fix/get-document-by-absolute-id","ref":"fix/get-document-by-absolute-id","sha":"3563a51b936499fb1fd43457f39533b8b1209230","user":{"login":"eXist-db","id":2393489,"avatar_url":"https://avatars2.githubusercontent.com/u/2393489?v=4","gravatar_id":"","url":"https://api.github.com/users/eXist-db","html_url":"https://github.com/eXist-db","followers_url":"https://api.github.com/users/eXist-db/followers","following_url":"https://api.github.com/users/eXist-db/following{/other_user}","gists_url":"https://api.github.com/users/eXist-db/gists{/gist_id}","starred_url":"https://api.github.com/users/eXist-db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXist-db/subscriptions","organizations_url":"https://api.github.com/users/eXist-db/orgs","repos_url":"https://api.github.com/users/eXist-db/repos","events_url":"https://api.github.com/users/eXist-db/events{/privacy}","received_events_url":"https://api.github.com/users/eXist-db/received_events","type":"Organization","site_admin":false},"repo":{"id":11695619,"name":"exist","full_name":"eXist-db/exist","owner":{"login":"eXist-db","id":2393489,"avatar_url":"https://avatars2.githubusercontent.com/u/2393489?v=4","gravatar_id":"","url":"https://api.github.com/users/eXist-db","html_url":"https://github.com/eXist-db","followers_url":"https://api.github.com/users/eXist-db/followers","following_url":"https://api.github.com/users/eXist-db/following{/other_user}","gists_url":"https://api.github.com/users/eXist-db/gists{/gist_id}","starred_url":"https://api.github.com/users/eXist-db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXist-db/subscriptions","organizations_url":"https://api.github.com/users/eXist-db/orgs","repos_url":"https://api.github.com/users/eXist-db/repos","events_url":"https://api.github.com/users/eXist-db/events{/privacy}","received_events_url":"https://api.github.com/users/eXist-db/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eXist-db/exist","description":"eXist Native XML Database and Application Platform","fork":false,"url":"https://api.github.com/repos/eXist-db/exist","forks_url":"https://api.github.com/repos/eXist-db/exist/forks","keys_url":"https://api.github.com/repos/eXist-db/exist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eXist-db/exist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eXist-db/exist/teams","hooks_url":"https://api.github.com/repos/eXist-db/exist/hooks","issue_events_url":"https://api.github.com/repos/eXist-db/exist/issues/events{/number}","events_url":"https://api.github.com/repos/eXist-db/exist/events","assignees_url":"https://api.github.com/repos/eXist-db/exist/assignees{/user}","branches_url":"https://api.github.com/repos/eXist-db/exist/branches{/branch}","tags_url":"https://api.github.com/repos/eXist-db/exist/tags","blobs_url":"https://api.github.com/repos/eXist-db/exist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eXist-db/exist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eXist-db/exist/git/refs{/sha}","trees_url":"https://api.github.com/repos/eXist-db/exist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eXist-db/exist/statuses/{sha}","languages_url":"https://api.github.com/repos/eXist-db/exist/languages","stargazers_url":"https://api.github.com/repos/eXist-db/exist/stargazers","contributors_url":"https://api.github.com/repos/eXist-db/exist/contributors","subscribers_url":"https://api.github.com/repos/eXist-db/exist/subscribers","subscription_url":"https://api.github.com/repos/eXist-db/exist/subscription","commits_url":"https://api.github.com/repos/eXist-db/exist/commits{/sha}","git_commits_url":"https://api.github.com/repos/eXist-db/exist/git/commits{/sha}","comments_url":"https://api.github.com/repos/eXist-db/exist/comments{/number}","issue_comment_url":"https://api.github.com/repos/eXist-db/exist/issues/comments{/number}","contents_url":"https://api.github.com/repos/eXist-db/exist/contents/{+path}","compare_url":"https://api.github.com/repos/eXist-db/exist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eXist-db/exist/merges","archive_url":"https://api.github.com/repos/eXist-db/exist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eXist-db/exist/downloads","issues_url":"https://api.github.com/repos/eXist-db/exist/issues{/number}","pulls_url":"https://api.github.com/repos/eXist-db/exist/pulls{/number}","milestones_url":"https://api.github.com/repos/eXist-db/exist/milestones{/number}","notifications_url":"https://api.github.com/repos/eXist-db/exist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eXist-db/exist/labels{/name}","releases_url":"https://api.github.com/repos/eXist-db/exist/releases{/id}","deployments_url":"https://api.github.com/repos/eXist-db/exist/deployments","created_at":"2013-07-26T21:53:48Z","updated_at":"2017-10-15T23:32:02Z","pushed_at":"2017-10-17T19:16:55Z","git_url":"git://github.com/eXist-db/exist.git","ssh_url":"git@github.com:eXist-db/exist.git","clone_url":"https://github.com/eXist-db/exist.git","svn_url":"https://github.com/eXist-db/exist","homepage":"http://www.exist-db.org","size":485053,"stargazers_count":181,"watchers_count":181,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":297,"forks":106,"open_issues":297,"watchers":181,"default_branch":"develop"}},"base":{"label":"eXist-db:develop","ref":"develop","sha":"4f0472b62b93e77d2e646aba16a72872270a3e77","user":{"login":"eXist-db","id":2393489,"avatar_url":"https://avatars2.githubusercontent.com/u/2393489?v=4","gravatar_id":"","url":"https://api.github.com/users/eXist-db","html_url":"https://github.com/eXist-db","followers_url":"https://api.github.com/users/eXist-db/followers","following_url":"https://api.github.com/users/eXist-db/following{/other_user}","gists_url":"https://api.github.com/users/eXist-db/gists{/gist_id}","starred_url":"https://api.github.com/users/eXist-db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXist-db/subscriptions","organizations_url":"https://api.github.com/users/eXist-db/orgs","repos_url":"https://api.github.com/users/eXist-db/repos","events_url":"https://api.github.com/users/eXist-db/events{/privacy}","received_events_url":"https://api.github.com/users/eXist-db/received_events","type":"Organization","site_admin":false},"repo":{"id":11695619,"name":"exist","full_name":"eXist-db/exist","owner":{"login":"eXist-db","id":2393489,"avatar_url":"https://avatars2.githubusercontent.com/u/2393489?v=4","gravatar_id":"","url":"https://api.github.com/users/eXist-db","html_url":"https://github.com/eXist-db","followers_url":"https://api.github.com/users/eXist-db/followers","following_url":"https://api.github.com/users/eXist-db/following{/other_user}","gists_url":"https://api.github.com/users/eXist-db/gists{/gist_id}","starred_url":"https://api.github.com/users/eXist-db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXist-db/subscriptions","organizations_url":"https://api.github.com/users/eXist-db/orgs","repos_url":"https://api.github.com/users/eXist-db/repos","events_url":"https://api.github.com/users/eXist-db/events{/privacy}","received_events_url":"https://api.github.com/users/eXist-db/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eXist-db/exist","description":"eXist Native XML Database and Application Platform","fork":false,"url":"https://api.github.com/repos/eXist-db/exist","forks_url":"https://api.github.com/repos/eXist-db/exist/forks","keys_url":"https://api.github.com/repos/eXist-db/exist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eXist-db/exist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eXist-db/exist/teams","hooks_url":"https://api.github.com/repos/eXist-db/exist/hooks","issue_events_url":"https://api.github.com/repos/eXist-db/exist/issues/events{/number}","events_url":"https://api.github.com/repos/eXist-db/exist/events","assignees_url":"https://api.github.com/repos/eXist-db/exist/assignees{/user}","branches_url":"https://api.github.com/repos/eXist-db/exist/branches{/branch}","tags_url":"https://api.github.com/repos/eXist-db/exist/tags","blobs_url":"https://api.github.com/repos/eXist-db/exist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eXist-db/exist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eXist-db/exist/git/refs{/sha}","trees_url":"https://api.github.com/repos/eXist-db/exist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eXist-db/exist/statuses/{sha}","languages_url":"https://api.github.com/repos/eXist-db/exist/languages","stargazers_url":"https://api.github.com/repos/eXist-db/exist/stargazers","contributors_url":"https://api.github.com/repos/eXist-db/exist/contributors","subscribers_url":"https://api.github.com/repos/eXist-db/exist/subscribers","subscription_url":"https://api.github.com/repos/eXist-db/exist/subscription","commits_url":"https://api.github.com/repos/eXist-db/exist/commits{/sha}","git_commits_url":"https://api.github.com/repos/eXist-db/exist/git/commits{/sha}","comments_url":"https://api.github.com/repos/eXist-db/exist/comments{/number}","issue_comment_url":"https://api.github.com/repos/eXist-db/exist/issues/comments{/number}","contents_url":"https://api.github.com/repos/eXist-db/exist/contents/{+path}","compare_url":"https://api.github.com/repos/eXist-db/exist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eXist-db/exist/merges","archive_url":"https://api.github.com/repos/eXist-db/exist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eXist-db/exist/downloads","issues_url":"https://api.github.com/repos/eXist-db/exist/issues{/number}","pulls_url":"https://api.github.com/repos/eXist-db/exist/pulls{/number}","milestones_url":"https://api.github.com/repos/eXist-db/exist/milestones{/number}","notifications_url":"https://api.github.com/repos/eXist-db/exist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eXist-db/exist/labels{/name}","releases_url":"https://api.github.com/repos/eXist-db/exist/releases{/id}","deployments_url":"https://api.github.com/repos/eXist-db/exist/deployments","created_at":"2013-07-26T21:53:48Z","updated_at":"2017-10-15T23:32:02Z","pushed_at":"2017-10-17T19:16:55Z","git_url":"git://github.com/eXist-db/exist.git","ssh_url":"git@github.com:eXist-db/exist.git","clone_url":"https://github.com/eXist-db/exist.git","svn_url":"https://github.com/eXist-db/exist","homepage":"http://www.exist-db.org","size":485053,"stargazers_count":181,"watchers_count":181,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":297,"forks":106,"open_issues":297,"watchers":181,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eXist-db/exist/pulls/1595"},"html":{"href":"https://github.com/eXist-db/exist/pull/1595"},"issue":{"href":"https://api.github.com/repos/eXist-db/exist/issues/1595"},"comments":{"href":"https://api.github.com/repos/eXist-db/exist/issues/1595/comments"},"review_comments":{"href":"https://api.github.com/repos/eXist-db/exist/pulls/1595/comments"},"review_comment":{"href":"https://api.github.com/repos/eXist-db/exist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eXist-db/exist/pulls/1595/commits"},"statuses":{"href":"https://api.github.com/repos/eXist-db/exist/statuses/3563a51b936499fb1fd43457f39533b8b1209230"}},"author_association":"NONE"}}
{"actor":{"display_login":"line-o"}}