Skip to content

If Listener is not set, Null Ref occurs #36

Open
@phillijw

Description

@phillijw

https://github.com/sacOO7/SocketclusterClientDotNet/blob/4013bada049d4c17506343fac0c61bf32f3bb583/ScClient/Socket.cs#L117C34-L117C41

I see two ways around this:

  1. Set a default Listener in the constructor that just doesn't do anything
  2. Check if the listener is null and throw a better exception than a null ref (or don't call the listener which would get annoying to do in every spot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions