cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5795] Prevening misleading NPE
Date Wed, 11 Jun 2014 11:23:27 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 62e88a2c1 -> fd7d6ef8a


[CXF-5795] Prevening misleading NPE


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/fd7d6ef8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/fd7d6ef8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/fd7d6ef8

Branch: refs/heads/2.7.x-fixes
Commit: fd7d6ef8a24a1e527d2796d6940a97dec4d59cef
Parents: 62e88a2
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Jun 11 12:20:31 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Jun 11 12:23:01 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/fd7d6ef8/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
index ac9e2b0..1484945 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
@@ -343,7 +343,7 @@ public final class ResponseImpl extends Response {
         }
         
         throw new IllegalStateException("The entity is not backed by an input stream, entity
class is : "
-            + entity != null ? entity.getClass().getName() : null);
+            + (entity != null ? entity.getClass().getName() : null));
         
     }
     


Mime
View raw message