wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r819194 - /incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/handlers/ClientResponseImpl.java
Date Sat, 26 Sep 2009 19:21:32 GMT
Author: bluk
Date: Sat Sep 26 19:21:32 2009
New Revision: 819194

URL: http://svn.apache.org/viewvc?rev=819194&view=rev
Log:
If entity is null, return the null directly

Modified:
    incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/handlers/ClientResponseImpl.java

Modified: incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/handlers/ClientResponseImpl.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/handlers/ClientResponseImpl.java?rev=819194&r1=819193&r2=819194&view=diff
==============================================================================
--- incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/handlers/ClientResponseImpl.java
(original)
+++ incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/handlers/ClientResponseImpl.java
Sat Sep 26 19:21:32 2009
@@ -61,6 +61,9 @@
             setEntity(t);
             return t;
         }
+        if (entity == null) {
+            return null;
+        }
         throw new ClassCastException(String
             .format("entity of type %s cannot be retrieved as type %s",
                     entity.getClass().getName(),



Mime
View raw message