abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r429454 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java
Date Mon, 07 Aug 2006 20:00:44 GMT
Author: jmsnell
Date: Mon Aug  7 13:00:44 2006
New Revision: 429454

URL: http://svn.apache.org/viewvc?rev=429454&view=rev
Log:
Fix a NPE

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java?rev=429454&r1=429453&r2=429454&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java
Mon Aug  7 13:00:44 2006
@@ -58,7 +58,7 @@
       type = ((Document)base).getContentType().toString();
     } else if (base instanceof Feed || base instanceof Entry) {
       Document doc = ((Element)base).getDocument();
-      if (doc != null)
+      if (doc != null && doc.getContentType() != null)
         type = doc.getContentType().toString();
       if (type == null)
         type = "application/atom+xml";



Mime
View raw message