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:45:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 9d25f9a06 -> 8bf53f976


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

Branch: refs/heads/master
Commit: 8bf53f9766b13c4e5ff2ed719f7250d34f77f219
Parents: 9d25f9a
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:45:21 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/8bf53f97/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