jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [3/5] jena git commit: ensure subject arg list has at least one element
Date Wed, 10 Jan 2018 16:00:34 GMT
ensure subject arg list has at least one element

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

Branch: refs/heads/master
Commit: 59dcb8ee9f07fa0d7c9664c50689004ba440e1ca
Parents: 66c842d
Author: Chris Tomlinson <ct@moonvine.org>
Authored: Fri Dec 29 08:30:20 2017 -0600
Committer: Chris Tomlinson <ct@moonvine.org>
Committed: Fri Dec 29 08:30:20 2017 -0600

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/query/text/TextQueryPF.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/59dcb8ee/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
----------------------------------------------------------------------
diff --git a/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java b/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
index 0021e3d..1051762 100644
--- a/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
+++ b/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
@@ -77,8 +77,8 @@ public class TextQueryPF extends PropertyFunctionBase {
 
         if (argSubject.isList()) {
             int size = argSubject.getArgListSize();
-            if (size > 4) {
-                throw new QueryBuildException("Subject has "+argSubject.getArgList().size()+"
elements, greater than 4: "+argSubject);
+            if (size == 0 || size > 4) {
+                throw new QueryBuildException("Subject has "+argSubject.getArgList().size()+"
elements, must be at least 1 and not greater than 4: "+argSubject);
             }
         }
 


Mime
View raw message