Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The getter '_nextController' was called on null. #583

Closed
hrongyong opened this issue Jul 21, 2020 · 1 comment
Closed

The getter '_nextController' was called on null. #583

hrongyong opened this issue Jul 21, 2020 · 1 comment

Comments

@hrongyong
Copy link

I added two Stream at audioplayers.dart,Used to monitor the click event of the ios notification bar。
I wrote according to onPlayerCompletion writing method, but the above problem appeared。

image
image
image
image

2020-07-21 10:35:00.103918+0800 Runner[1142:420672] [VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter '_nextController' was called on null.
Receiver: null
Tried calling: _nextController
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 AudioPlayer._doHandlePlatformCall (package:audioplayers/audioplayers.dart:639:18)
#2 AudioPlayer.platformCallHandler (package:audioplayers/audioplayers.dart:573:7)
#3 MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:409:55)
#4 MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:377:54)
#5 _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:199:33)
#6 _invoke3. (dart:ui/hooks.dart:290:15)
#7 _rootRun (dart:async/zone.dart:1184:13)
#8 _CustomZone.run (dart:async/zone.dart:1077:19)
#9 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#10 _invoke3 (dart:ui/hooks.dart:289:10)
#11 _dispatchPlatformMessage (dart:ui/hooks.dart:164:5)

@hrongyong
Copy link
Author

Ok fine。is my problem。I forgot to carry playerId parameter when I sent it back on the ios side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant