You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @poqueque
Sorry about this, this commit should fix the error
We're gonna publish a new version as soon as possible, you can try using the dependency from git in the meantime
We are receving the following error from the SDK when starting the app.
Unhandled Exception: Null check operator used on a null value
As a consequence (I guess), when calling connectUser, we receive an error
E/flutter (21157): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Exception: Already connecting
E/flutter (21157): #0 StreamChatClient.connect (package:stream_chat/src/client.dart:512:7)
E/flutter (21157): #1 StreamChatClient.connectUser (package:stream_chat/src/client.dart:434:12)
E/flutter (21157): #2 ChatConnection.connect (package:clarity_alarm/model/chat/chat_connection.dart:81:10)
E/flutter (21157):
E/flutter (21157): #3 _SplashState.workFlow (package:clarity_alarm/splash.dart:147:5)
E/flutter (21157):
What package are you using? What version?
stream_chat_flutter: ^2.0.0-nullsafety.6
What platform is it about?
in iOS it does not happen, only on Android.
To Reproduce
This is the what returns the top level App widget where we define StreamChat. My guess is that here is where it is throwing the error:
Expected behavior
Should not throw errors
**Logs **
E/flutter (21157): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Null check operator used on a null value
E/flutter (21157): #0 StreamChatClient.connect (package:stream_chat/src/client.dart:529:23)
E/flutter (21157): #1 StreamChatCoreState._subscribeToConnectivityChange. (package:stream_chat_flutter_core/src/stream_chat_core.dart:129:20)
E/flutter (21157): #2 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (21157): #3 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (21157): #4 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (21157): #5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (21157): #6 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21157): #7 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
E/flutter (21157): #8 _DistinctStream._handleData (dart:async/stream_pipe.dart:442:12)
E/flutter (21157): #9 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
E/flutter (21157): #10 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (21157): #11 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (21157): #12 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (21157): #13 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (21157): #14 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21157): #15 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
E/flutter (21157): #16 _MapStream._handleData (dart:async/stream_pipe.dart:218:10)
E/flutter (21157): #17 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
E/flutter (21157): #18 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (21157): #19 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (21157): #20 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (21157): #21 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (21157): #22 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21157): #23 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
E/flutter (21157): #24 _MapStream._handleData (dart:async/stream_pipe.dart:218:10)
E/flutter (21157): #25 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
E/flutter (21157): #26 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (21157): #27 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (21157): #28 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (21157): #29 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (21157): #30 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
E/flutter (21157): #31 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
E/flutter (21157): #32 _PendingEvents.schedule. (dart:async/stream_impl.dart:663:7)
E/flutter (21157): #33 _rootRun (dart:async/zone.dart:1346:47)
E/flutter (21157): #34 _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (21157): #35 _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (21157): #36 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1202:23)
E/flutter (21157): #37 _rootRun (dart:async/zone.dart:1354:13)
E/flutter (21157): #38 _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (21157): #39 _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (21157): #40 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1202:23)
E/flutter (21157): #41 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter (21157): #42 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
Paste the output of running
flutter doctor -v
here.Additional context
It started happening recently, however, downgrading to version 2.0.0-nullsafety.4 didn't helped
The text was updated successfully, but these errors were encountered: