Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1382

NPE in ResultSetClosable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.2.0, Jena 3.3.0, Jena 3.4.0
    • Jena 3.5.0
    • ARQ
    • 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();
      }
      

      Attachments

        Activity

          People

            andy Andy Seaborne
            LorenzB Lorenz Bühmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: