centrifugal / centrifuge-dart

Dart (Flutter) client SDK for bidirectional communication with Centrifugo and Centrifuge-based server over WebSocket

Home Page:https://pub.dartlang.org/packages/centrifuge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPE in ClientImpl.disconnect() _transport == null

jobpav1984 opened this issue · comments

I have crashlog in firebase:
NoSuchMethodError: The method 'close' was called on null. Receiver: null Tried calling: close()
Transport.close (Transport.java:93)
ClientImpl.disconnect (ClientImpl.java:144)
CentrifugeInteractor.dispose (CentrifugeInteractor.java:47)
CartPharmaciesListPageBLoC._stopCentrifuge (CartPharmaciesListPageBLoC.java:289)
CartPharmaciesListPageBLoC.dispose (CartPharmaciesListPageBLoC.java:156)
_CartPharmaciesListPageState.dispose (_CartPharmaciesListPageState.java:94)

Seems, it happen when invoke _transport.close() when _transport not build yet.