cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6787] Checking for a null message in WADLGenerator
Date Mon, 22 Feb 2016 12:21:23 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 65dcdbc42 -> 04ce396b6


[CXF-6787] Checking for a null message in WADLGenerator


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

Branch: refs/heads/master
Commit: 04ce396b642060eeb45e341305943aa139c5eeb5
Parents: 65dcdbc
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 22 12:21:04 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 22 12:21:04 2016 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/04ce396b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
----------------------------------------------------------------------
diff --git a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
index 61d454b..1d2e75b 100644
--- a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
+++ b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
@@ -202,6 +202,9 @@ public class WadlGenerator implements ContainerRequestFilter {
     @Override
     public void filter(ContainerRequestContext context) {
         Message m = JAXRSUtils.getCurrentMessage();
+        if (m == null) {
+            return;
+        }
         doFilter(context, m);
     }
 


Mime
View raw message