Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 3.2.0, Jena 3.3.0, Jena 3.4.0
-
None
Description
Using ResultSetClosable leads to a NPE for QueryExecution objects that have been created based on the query string only, i.e. without a parsed Query object because of the sanity check regarding SELECT queries.
Example:
QueryEngineHttp qe = new QueryEngineHttp("http://dbpedia.org/sparql", "select * { ?s ?p ?o } limit 1"); try(ResultSetCloseable rs = ResultSetCloseable.closableResultSet(qe)) { rs.hasNext(); }