jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/3] jena git commit: Unset base.
Date Fri, 26 Jun 2015 18:07:03 GMT
Repository: jena
Updated Branches:
  refs/heads/master e9a976bae -> 37a19789a


Unset base.

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

Branch: refs/heads/master
Commit: 820714bf5b0f013aa41cb80a4bd013d6b28c8cc4
Parents: 84eca45
Author: Andy Seaborne <andy@apache.org>
Authored: Fri Jun 26 17:52:50 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri Jun 26 17:52:50 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/jena/sparql/core/Prologue.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/820714bf/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
index ca4ff73..2a656d4 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
@@ -116,6 +116,11 @@ public class Prologue
      */
     public void setBaseURI(String baseURI)
     {
+        if ( baseURI == null ) {
+            this.seenBaseURI = false ;
+            this.resolver = null ;
+            return ;
+        }
         this.seenBaseURI = true ;
         this.resolver = IRIResolver.create(baseURI) ; 
     }
@@ -125,6 +130,11 @@ public class Prologue
      */
     public void setBaseURI(IRIResolver resolver)
     {
+        if ( resolver == null ) {
+            this.seenBaseURI = false ;
+            this.resolver = null ;
+            return ;
+        }
         this.seenBaseURI = true ;
         this.resolver = resolver ; 
     }


Mime
View raw message