Skip to content

Cannot interact with Server, due to NullReferenceException #328

@Damitrix

Description

@Damitrix

Using #327
Initializing a new ButtplugWSClient causes _owningDispatcher to be null, which in turn leads to Messages not being sent, and ultimately to an Exception when a Message is Recieved, cause it's not getting checked for being null there.
Example Code:
var _bpClient = new ButtplugWSClient("TestClient");
_bpClient.Connect(new Uri("ws://localhost:12345"));

"Faulty" Line 100: _owningDispatcher = SynchronizationContext.Current;
SynchronizationContext.Current is null.

Tried this in the static Main Function and a new Task, same Result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions