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:25:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes e37a80686 -> 44a5876d4


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

Branch: refs/heads/3.0.x-fixes
Commit: 44a5876d4916aa24854f46b3357fcb9a11eea4b6
Parents: e37a806
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:25:20 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/44a5876d/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 b9259fd..4a5f0dc 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
@@ -203,6 +203,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