We're updating the issue view to help you get more done. 

Results parsers must work without handlers

Description

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);

Environment

None

Status

Assignee

Peter Ansell

Reporter

James Leigh

Labels

None

Components

Fix versions

Affects versions

2.7.2

Priority

Minor