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:20:50 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 5885d6be3 -> f75fa599c


[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/f75fa599
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f75fa599
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f75fa599

Branch: refs/heads/master
Commit: f75fa599c12005fd8541dbfe783882a334366307
Parents: 5885d6b
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:20:31 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/f75fa599/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 cfe626a..51ff48d 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
@@ -385,7 +385,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