Skip to content

Commit

Permalink
fix FeedCommand improper newInstance() call (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonResnik committed Jun 17, 2024
1 parent a3cb7d7 commit d22e315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/emissary/command/FeedCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void startService() {

LOG.info("Starting feeder using {} as the workspace class", workspaceClass);
try {
WorkSpace ws = Class.forName(workspaceClass).asSubclass(WorkSpace.class).getDeclaredConstructor(FeedCommand.class).newInstance();
WorkSpace ws = Class.forName(workspaceClass).asSubclass(WorkSpace.class).getDeclaredConstructor(FeedCommand.class).newInstance(this);
ws.run();
} catch (Exception e) {
LOG.error("Error running WorkSpace class: {} ", workspaceClass, e);
Expand Down

0 comments on commit d22e315

Please sign in to comment.