BaseXdb/basex — Issue #262: AIOOB in util:to-bytes(...)
Author: LeoWoerteler
Created: 2011-11-12 11:12:47+00:00
State: open
Labels: bug, XQuery

Query:
---------

```xquery
util:to-bytes(xs:hexBinary(attribute foo {'01'}))
```

Result:
----------

```
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at org.basex.query.func.FNUtil$1.get(FNUtil.java:356)
at org.basex.query.func.FNUtil$1.next(FNUtil.java:359)
at org.basex.query.QueryContext.eval(QueryContext.java:338)
at org.basex.query.QueryProcessor.execute(QueryProcessor.java:136)
```