You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2006/08/07 22:00:44 UTC
svn commit: r429454 -
/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/BaseRequestEntity.java
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";