andrei-ivanov commented on a change in pull request #434: NPE when annotations 
bundle found but not active
URL: https://github.com/apache/cxf/pull/434#discussion_r208998630
 
 

 ##########
 File path: 
rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/OsgiSwaggerUiResolver.java
 ##########
 @@ -47,6 +47,9 @@ public String findSwaggerUiRootInternal(String 
swaggerUiMavenGroupAndArtifact,
             if (bundle == null) {
                 return null;
             }
+            if (bundle.getState() != Bundle.ACTIVE) {
+                               bundle.start();
 
 Review comment:
   is it me or the indentation is mixed, space and tabs?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to