Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Logger ArgumentNullException VncServerSession #168

Open
Varmod opened this issue Jul 21, 2023 · 0 comments
Open

Logger ArgumentNullException VncServerSession #168

Varmod opened this issue Jul 21, 2023 · 0 comments

Comments

@Varmod
Copy link

Varmod commented Jul 21, 2023

Hi,

I'm running a VncServerSession and when a client disconnects I get a:
System.ArgumentNullException: 'Value cannot be null. (Parameter 'logger')

Stacktrace:
Microsoft.Extensions.Logging.Abstractions.dll!Microsoft.Extensions.Logging.LoggerExtensions.Log(Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, System.Exception exception, string message, object[] args RemoteViewing.dll!RemoteViewing.Vnc.Server.VncServerSession.OnClosed() RemoteViewing.dll!RemoteViewing.Vnc.Server.VncServerSession.ThreadMain() System.Private.CoreLib.dll!System.Threading.Thread.StartCallback()

I use the parameterless VncServerSession constructor that isn't passed a Ilogger implementation.
On a quick glance it looks like OnClosed method is missing a null check for the logger?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant