abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject svn commit: r538942 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbstractClientResponse.java
Date Thu, 17 May 2007 14:32:36 GMT
Author: ugo
Date: Thu May 17 07:32:35 2007
New Revision: 538942

URL: http://svn.apache.org/viewvc?view=rev&rev=538942
Log:
Check for null before causing an NPE.

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

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbstractClientResponse.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbstractClientResponse.java?view=diff&rev=538942&r1=538941&r2=538942
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbstractClientResponse.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbstractClientResponse.java
Thu May 17 07:32:35 2007
@@ -80,7 +80,7 @@
       String charset = getCharacterEncoding();
       if (charset != null) options.setCharset(charset);
       IRI cl = getContentLocation();
-      if (!cl.isAbsolute()) {
+      if (cl != null && !cl.isAbsolute()) {
         IRI r = new IRI(getUri());
         cl = r.resolve(cl);
       }



Mime
View raw message