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-6285] Fixing NPE
Date Tue, 10 Mar 2015 14:46:38 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 24d88dc5e -> b8f198bea


[CXF-6285] Fixing NPE


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

Branch: refs/heads/3.0.x-fixes
Commit: b8f198beaaa0f4bf37e364ef0556ba1b3405816f
Parents: 24d88dc
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Mar 10 14:45:21 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Mar 10 14:46:20 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/b8f198be/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
----------------------------------------------------------------------
diff --git a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
index 8900ba1..85ef7a8 100644
--- a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
+++ b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
@@ -96,7 +96,7 @@ public class SwaggerFeature extends AbstractFeature {
         
         if ((resourceInfo != null) 
             && (getResourcePackage() == null || getResourcePackage().length() ==
0)) {
-            setResourcePackage(resourceInfo.getResourceClass().getPackage().getName());
+            setResourcePackage(resourceInfo.getServiceClass().getPackage().getName());
         }
     }
     


Mime
View raw message