Repository: jena
Updated Branches:
  refs/heads/master 7b011c30b -> 0216a8cf5


JENA-1590: fix if statement in RDFWriter#output


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

Branch: refs/heads/master
Commit: a770191715664d2410b100692d778cf3b304f454
Parents: 7b011c3
Author: Bruno P. Kinoshita <ki...@apache.org>
Authored: Sun Aug 12 00:49:59 2018 +1200
Committer: Bruno P. Kinoshita <ki...@apache.org>
Committed: Sun Aug 12 09:47:51 2018 +1200

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


http://git-wip-us.apache.org/repos/asf/jena/blob/a7701917/jena-arq/src/main/java/org/apache/jena/riot/RDFWriter.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriter.java 
b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriter.java
index 7cf7759..ad4b80a 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriter.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriter.java
@@ -139,7 +139,7 @@ public class RDFWriter {
             if ( ct == null )
                 throw new RiotException("Lang and RDFformat unset and can't 
determine syntax from '"+filename+"'");
             Lang lang = RDFLanguages.contentTypeToLang(ct);
-            if ( ct == null )
+            if ( lang == null )
                 throw new RiotException("No syntax registered for 
'"+ct.getContentType()+"'"); 
             fmt = RDFWriterRegistry.defaultSerialization(lang);
         }

Reply via email to