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:23:59 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 4b1729c83 -> 74d026096


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

Branch: refs/heads/3.1.x-fixes
Commit: 74d0260961c6fd546cbb89d35cbe6c536cb6dc98
Parents: 4b1729c
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:23:18 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/74d02609/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