dart-drivers / mysql

MySQL Connector for Dart
Other
99 stars 38 forks source link

NoSuchMethodError: The method 'readBuffer' was called on null. #72

Open mezoni opened 7 years ago

mezoni commented 7 years ago

Unhandled exception: NoSuchMethodError: The method 'readBuffer' was called on null. Receiver: null Tried calling: readBuffer(Instance of 'Buffer')

0 Object._noSuchMethod (dart:core-patch/object_patch.dart:44)

1 Object.noSuchMethod (dart:core-patch/object_patch.dart:47)

2 _Connection._readPacket (package:sqljocky/src/connection.dart:94:15)

3 BufferedSocket._onData (package:sqljocky/src/buffered_socket.dart:67:22)

4 _RootZone.runUnaryGuarded (dart:async/zone.dart:1338)

4 _RootZone.runUnaryGuarded (dart:async/zone.dart:1338)

5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:331)

6 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:258)

7 _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:768)

8 _StreamController._add (dart:async/stream_controller.dart:635)

9 _StreamController.add (dart:async/stream_controller.dart:581)

10 _RawSocket._RawSocket. (dart:io-patch/socket_patch.dart:1249)

11 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:783)

12 _microtaskLoop (dart:async/schedule_microtask.dart:41)

13 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)

14 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)

15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)