diff --git a/src/main/java/org/scijava/event/DefaultEventService.java b/src/main/java/org/scijava/event/DefaultEventService.java index 5059046db..30194744d 100644 --- a/src/main/java/org/scijava/event/DefaultEventService.java +++ b/src/main/java/org/scijava/event/DefaultEventService.java @@ -140,7 +140,7 @@ public List> subscribe(final Object o) { @Override public void subscribe(final EventSubscriber subscriber) { - eventBus.subscribe(subscriber.getClass(), subscriber); + eventBus.subscribe(subscriber.getEventClass(), subscriber); } @Override