Skip to content

Commit

Permalink
Fix enormous bug in subscribe(EventSubscriber)
Browse files Browse the repository at this point in the history
Thanks to Gabriel Selzer for pointing it out.
  • Loading branch information
ctrueden committed Feb 12, 2024
1 parent fd95150 commit 4632c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/scijava/event/DefaultEventService.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public List<EventSubscriber<?>> subscribe(final Object o) {

@Override
public void subscribe(final EventSubscriber<?> subscriber) {
eventBus.subscribe(subscriber.getClass(), subscriber);
eventBus.subscribe(subscriber.getEventClass(), subscriber);
}

@Override
Expand Down

0 comments on commit 4632c64

Please sign in to comment.