-
Notifications
You must be signed in to change notification settings - Fork 92
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
java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.EventChannel$EventSink.success(java.lang.Object)' on a null object reference #75
Comments
Does it cause the app to crash? |
No, it doesn't, it only shows a black screen @KhuramKhalid |
This happens in the We can suppress the logging of this error but for now just ignore it. |
@KhuramKhalid Why this issue has been closed? Do we have any potential fix for this or any workaround in order to mitigate this black screen issue? |
I don't think this error causes black screen since this is caught, printed to logs and ignored. Also since this method is called after the stream has started playing so whatever caused black screen; already happened. However, you're right this needs further investigation so will keep this open until we've found a fix. If possible, please provide a stream url that produces this issue and I will try finding a solution. |
Here's an example. I hope it helps in the investigation, @KhuramKhalid. |
Am running on some devices , and am getting this exception :
E/PlayerLayout( 4516): java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.EventChannel$EventSink.success(java.lang.Object)' on a null object reference
E/PlayerLayout( 4516): at tv.mta.flutter_playout.video.PlayerLayout$2.run(PlayerLayout.java:480)
E/PlayerLayout( 4516): at android.os.Handler.handleCallback(Handler.java:938)
E/PlayerLayout( 4516): at android.os.Handler.dispatchMessage(Handler.java:99)
E/PlayerLayout( 4516): at android.os.Looper.loop(Looper.java:223)
E/PlayerLayout( 4516): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/PlayerLayout( 4516): at java.lang.reflect.Method.invoke(Native Method)
E/PlayerLayout( 4516): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/PlayerLayout( 4516): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
D/PlayerLayout( 4516): onTime: [time=49]
E/PlayerLayout( 4516): onTime:
The text was updated successfully, but these errors were encountered: