sefidgaran / signalr_client

A Flutter SignalR Client for ASP.NET Core
https://pub.dev/packages/signalr_netcore
MIT License
78 stars 112 forks source link

handshake failed with error 'Null check operator used on a null value' during start(). #40

Open IRelaxxx opened 1 year ago

IRelaxxx commented 1 year ago

When starting the connection i get the above error because await _handshakeCompleter!.future; _handshakeCompleter is null in _startInternal

renik8484 commented 1 year ago

@IRelaxxx Have you found anything on this ? I am facing this error too.

IRelaxxx commented 1 year ago

@IRelaxxx Have you found anything on this ? I am facing this error too.

No, i forked this repo and did a null check around the problematic code. Seems to work fine. https://github.com/daubit/signalr_client

renik8484 commented 1 year ago

Can you share that null check code ?

IRelaxxx commented 1 year ago

I added the check here: https://github.com/daubit/signalr_client/blob/master/lib/hub_connection.dart#L208