Skip to content

Commit

Permalink
fix: Fixed issue in installation without guice extension
Browse files Browse the repository at this point in the history
Refs: #106
  • Loading branch information
nirikash committed Sep 27, 2024
1 parent 4c9389f commit 452fbc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public static GuiceActionHooksFactory build() {
@Inject
@SuppressWarnings("unused")
public void setActionHooks(Set<IActionHook> actionHooks) {
this.actionHooks.addAll(actionHooks);
logger.info("Added guice action hooks: " + actionHooks.size());
if (actionHooks != null) {
this.actionHooks.addAll(actionHooks);
logger.info("Added guice action hooks: " + actionHooks.size());
}
}
}
1 change: 1 addition & 0 deletions src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Require-Bundle: com.polarion.portal.tomcat,
org.apache.commons.logging,
org.apache.hivemind,
slf4j.api
Guice-Modules: ch.sbb.polarion.extension.interceptor_manager.guice.GuiceModule
Import-Package: org.osgi.framework,
org.osgi.util.tracker
Export-Package: ch.sbb.polarion.extension.interceptor_manager,
Expand Down

0 comments on commit 452fbc1

Please sign in to comment.