Public bug reported: In the data converters module, html:parse-internal has return type document-node(), however in its implementation, when an error happens, it seems to return a SingletonItemSequence with a zorba::Item containing a NULL pointer:
http://bazaar.launchpad.net/~zorba-coders/zorba/data-converters- module/view/head:/src/com/zorba- xquery/www/modules/converters/html.xq.src/tidy_wrapper.h#L194 This leads to a type error at runtime because the function signature is not matched. Perhaps a special error code could be returned? ** Affects: zorba Importance: Undecided Assignee: Chris Hillery (ceejatec) Status: New -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/1022976 Title: html:parse-internal may return empty sequence Status in Zorba - The XQuery Processor: New Bug description: In the data converters module, html:parse-internal has return type document-node(), however in its implementation, when an error happens, it seems to return a SingletonItemSequence with a zorba::Item containing a NULL pointer: http://bazaar.launchpad.net/~zorba-coders/zorba/data-converters- module/view/head:/src/com/zorba- xquery/www/modules/converters/html.xq.src/tidy_wrapper.h#L194 This leads to a type error at runtime because the function signature is not matched. Perhaps a special error code could be returned? To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/1022976/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp