From 87d017e3abb92613015dce539b3ad8d9253574c8 Mon Sep 17 00:00:00 2001 From: Gregorius Soedharmo Date: Thu, 14 Nov 2024 22:09:05 +0700 Subject: [PATCH] Fix `.WithShardedDaemonProcess()` throws NullReferenceException (#522) --- src/Akka.Cluster.Hosting/ClusterDaemonOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Akka.Cluster.Hosting/ClusterDaemonOptions.cs b/src/Akka.Cluster.Hosting/ClusterDaemonOptions.cs index 8afcb0ec..127ca810 100644 --- a/src/Akka.Cluster.Hosting/ClusterDaemonOptions.cs +++ b/src/Akka.Cluster.Hosting/ClusterDaemonOptions.cs @@ -12,10 +12,10 @@ public sealed class ClusterDaemonOptions public string? Role { get; set; } public object? HandoffStopMessage { get; set; } - internal Config? ToHocon() + internal Config ToHocon() { return KeepAliveInterval is not null ? $"akka.cluster.sharded-daemon-process.keep-alive-interval = {KeepAliveInterval.ToHocon()}" - : null; + : Config.Empty; } } \ No newline at end of file