jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1607417 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
Date Wed, 02 Jul 2014 16:36:30 GMT
Author: andy
Date: Wed Jul  2 16:36:30 2014
New Revision: 1607417

URL: http://svn.apache.org/r1607417
Log:
Defend against null arguments.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java?rev=1607417&r1=1607416&r2=1607417&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java Wed Jul  2 16:36:30
2014
@@ -187,6 +187,9 @@ public class WebContent
 
     /** Match content type (ignores charsets and other parameters) */ 
     public static boolean matchContentType(ContentType ct1, ContentType ct2)  {
+        if ( ct1 == null || ct2 == null )
+            return false ;
+        
         return matchContentType(ct1.getContentType(), ct2.getContentType()) ;
     }
     



Mime
View raw message