{"action":"opened","issue":{"url":"https://api.github.com/repos/BaseXdb/basex/issues/1181","labels_url":"https://api.github.com/repos/BaseXdb/basex/issues/1181/labels{/name}","comments_url":"https://api.github.com/repos/BaseXdb/basex/issues/1181/comments","events_url":"https://api.github.com/repos/BaseXdb/basex/issues/1181/events","html_url":"https://github.com/BaseXdb/basex/issues/1181","id":99898657,"number":1181,"title":"Bug in fn:unparsed-text-lines (8.2.3)","user":{"login":"xokomola","id":175625,"avatar_url":"https://avatars.githubusercontent.com/u/175625?v=3","gravatar_id":"","url":"https://api.github.com/users/xokomola","html_url":"https://github.com/xokomola","followers_url":"https://api.github.com/users/xokomola/followers","following_url":"https://api.github.com/users/xokomola/following{/other_user}","gists_url":"https://api.github.com/users/xokomola/gists{/gist_id}","starred_url":"https://api.github.com/users/xokomola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xokomola/subscriptions","organizations_url":"https://api.github.com/users/xokomola/orgs","repos_url":"https://api.github.com/users/xokomola/repos","events_url":"https://api.github.com/users/xokomola/events{/privacy}","received_events_url":"https://api.github.com/users/xokomola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-09T13:54:12Z","updated_at":"2015-08-09T13:54:12Z","closed_at":null,"body":"When calling fn:unparsed-text-lines with an empty-sequence as first argument there is an NPE.\r\n\r\nAccording to the spec this should simply return with the empty sequence as the signature is this:\r\n\r\n    fn:unparsed-text-lines($href as xs:string?) as xs:string* \r\n    fn:unparsed-text-lines($href as xs:string?, $encoding as xs:string) as xs:string*\r\n\r\nSimilar functions already behave like this: e.g. fn:unparsed-text(()) will return ().\r\n"}}