jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1562423 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
Date Wed, 29 Jan 2014 12:08:00 GMT
Author: andy
Date: Wed Jan 29 12:08:00 2014
New Revision: 1562423

URL: http://svn.apache.org/r1562423
Log:
Protect against no Content-Type given.

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=1562423&r1=1562422&r2=1562423&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 Jan 29 12:08:00
2014
@@ -187,6 +187,8 @@ public class WebContent
     }
 
     public static boolean isHtmlForm(ContentType ct) {
+        if ( ct == null )
+            return false ;
         return contentTypeHTMLForm.equalsIgnoreCase(ct.getContentType()) ;
     }
 



Mime
View raw message