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
When Android application exits (user closes the application), there is an null-pointer exception thrown:
Exception 'java.lang.NullPointerException' occurred in thread 'main' at com.cloudwebrtc.webrtc.FlutterWebRTCPlugin.onDetachedFromActivity(FlutterWebRTCPlugin.java:97)
When application exits, it throws an exception:
Exception 'java.lang.NullPointerException' occurred in thread 'main' at com.cloudwebrtc.webrtc.FlutterWebRTCPlugin.onDetachedFromActivity(FlutterWebRTCPlugin.java:97)
See also issue #578
Signed-off-by: Peter Antoniac <pan1nx+flutterwebrtc@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When Android application exits (user closes the application), there is an null-pointer exception thrown:
Suggestion how to fix
In FlutterWebRTCPlugin.java @ L97 (https://github.com/flutter-webrtc/flutter-webrtc/blob/master/android/src/main/java/com/cloudwebrtc/webrtc/FlutterWebRTCPlugin.java#L97) patch it like this:
To Reproduce
Create an Android application and use flutter_webrtc. When exit the application, the exception is thrown.
Expected behavior
Exit gracefully.
Platform information
Flutter version: Flutter (Channel beta, 2.2.0, on Linux, locale en_US.UTF-8), Flutter version 2.2.0, Framework revision b22742018b (3 weeks ago), Engine revision a9d88a4d18, Dart version 2.13.0
Plugin version: 0.6.4
OS: Android
OS version: Any API >= 23 showed same behavior
The text was updated successfully, but these errors were encountered: