jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: JENA-1382: Check query exists to be tested.
Date Sun, 20 Aug 2017 09:00:03 GMT
Repository: jena
Updated Branches:
  refs/heads/master e94a3d95d -> 98db31411


JENA-1382: Check query exists to be tested.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/98db3141
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/98db3141
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/98db3141

Branch: refs/heads/master
Commit: 98db31411757c5464ab76cc524bd8dd33a9f2753
Parents: e94a3d9
Author: Andy Seaborne <andy@apache.org>
Authored: Sun Aug 20 09:46:11 2017 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sun Aug 20 09:46:11 2017 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/query/ResultSetCloseable.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/98db3141/jena-arq/src/main/java/org/apache/jena/query/ResultSetCloseable.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/query/ResultSetCloseable.java b/jena-arq/src/main/java/org/apache/jena/query/ResultSetCloseable.java
index e163be4..3b92e20 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/ResultSetCloseable.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/ResultSetCloseable.java
@@ -35,7 +35,7 @@ public class ResultSetCloseable extends ResultSetWrapper implements AutoCloseabl
      * @return ResultSetCloseable
      */
     public static ResultSetCloseable closeableResultSet(QueryExecution queryExecution) {
-        if ( ! queryExecution.getQuery().isSelectType() )
+        if ( queryExecution.getQuery() != null && ! queryExecution.getQuery().isSelectType()
)
             throw new IllegalArgumentException("Not an execution for a SELECT query");
         return new ResultSetCloseable(queryExecution.execSelect(), queryExecution) ;
     }


Mime
View raw message