diff --git a/Reactor.Impostor.Http/ClientModsHeader.cs b/Reactor.Impostor.Http/ClientModsHeader.cs index 89924da..4e44808 100644 --- a/Reactor.Impostor.Http/ClientModsHeader.cs +++ b/Reactor.Impostor.Http/ClientModsHeader.cs @@ -47,8 +47,14 @@ public async Task InvokeAsync(HttpContext context, RequestDelegate next) return null; } - private ReactorClientInfo? BuildReactorClientInfo(string str) + private ReactorClientInfo? BuildReactorClientInfo(string? str) { + if (str == null) + { + _logger.LogError("Expected a non-null value"); + return null; + } + var parts = str.Split(';'); if (parts.Length < 2) {