Fixed
Details
Details
Assignee
Peter Ansell
Peter AnsellReporter
James Leigh
James LeighComponents
Fix versions
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created June 13, 2013 at 7:56 PM
Updated October 23, 2013 at 10:52 PM
Resolved June 25, 2013 at 3:09 AM
The follow throws a NPE. However, a QueryResultParseException is expected.
ByteArrayOutputStream out = new ByteArrayOutputStream();
TupleQueryResult tqr = new TupleQueryResultImpl(Arrays.asList("x"), Collections.<BindingSet>emptyList());
QueryResultIO.write(tqr, TupleQueryResultFormat.SPARQL, out);
ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
QueryResultIO.createParser(getBooleanFormat()).parse(in);