Skip to content

Commit

Permalink
Merge pull request #98 from cuba-platform/fix-spotbugs
Browse files Browse the repository at this point in the history
Fix SpotBugs
  • Loading branch information
gorbunkov authored Aug 11, 2021
2 parents df3cb11 + b462824 commit d538a06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ private void invokeAttachedHandlers(BaseImapEvent event, ImapFolder cubaFolder,
log.trace("{}: invoking handlers {} for event {}", cubaFolder.getName(), handlers, event);

for (ImapEventHandler handler : handlers) {
Object bean = AppBeans.get(handler.getBeanName());
if (bean == null) {
if (!AppBeans.containsBean(handler.getBeanName())) {
log.warn("No bean {} is available, check the folder {} configuration", handler.getBeanName(), cubaFolder);
return;
}
Object bean = AppBeans.get(handler.getBeanName());
Class<? extends BaseImapEvent> eventClass = event.getClass();
try {
authentication.begin();
Expand Down

0 comments on commit d538a06

Please sign in to comment.