Skip to content

Commit f2025e3

Browse files
authored
Fix possible NRE bug in Dispatchers (#6906)
1 parent 067bd76 commit f2025e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Akka/Dispatch/Dispatchers.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,10 @@ public static Config GetConfig(Config config, string id, int depth = 0)
372372
public Dispatchers(ActorSystem system, IDispatcherPrerequisites prerequisites, ILoggingAdapter logger)
373373
{
374374
_system = system;
375+
_logger = logger;
375376
Prerequisites = prerequisites;
376377
_cachingConfig = new CachingConfig(prerequisites.Settings.Config);
377378
_defaultGlobalDispatcher = Lookup(DefaultDispatcherId);
378-
_logger = logger;
379379

380380
InternalDispatcher = Lookup(InternalDispatcherId);
381381
}

0 commit comments

Comments
 (0)