artio icon indicating copy to clipboard operation
artio copied to clipboard

Library crashes with NullPointerException when using DynamicLibraryScheduler and MonitoringAgentFactory.none()

Open fredfp opened this issue 2 years ago • 0 comments

Running the library with the configuration below triggers

java.lang.NullPointerException: Cannot invoke "org.agrona.concurrent.Agent.onStart()" because "this.monitoringAgent" is null

new LibraryConfiguration()
  .scheduler(new DynamicLibraryScheduler())
  .monitoringAgentFactory(MonitoringAgentFactory.none())

DynamicLibraryScheduler doesn't seem to handle this properly.

fredfp avatar Dec 13 '22 14:12 fredfp