Android App Crashes Flutter Video SDK

Android App crashes when another participant refreshes the browser window. Following is the crash log

‘java.lang.String us.zoom.sdk.ZoomVideoSDKUser.getUserID()’ on a null object reference

[ ] E/AndroidRuntime(32418): Process: com.example.integrated_project, PID: 32418
[ ] E/AndroidRuntime(32418): java.lang.NullPointerException: Attempt to invoke interface method ‘java.lang.String us.zoom.sdk.ZoomVideoSDKUser.getUserID()’ on a null object reference
[ ] E/AndroidRuntime(32418): at com.flutterzoom.videosdk.FlutterZoomVideoSdkUser.jsonUser(FlutterZoomVideoSdkUser.java:54)
[ ] E/AndroidRuntime(32418): at com.flutterzoom.videosdk.FlutterZoomVideoSdkPlugin.onUserHostChanged(FlutterZoomVideoSdkPlugin.java:1085)
[ ] E/AndroidRuntime(32418): at us.zoom.internal.ZoomVideoSDKDelegateHelper$1$12.run(ZoomVideoSDKDelegateHelper.java:2)
[ ] E/AndroidRuntime(32418): at android.os.Handler.handleCallback(Handler.java:1000)
[ ] E/AndroidRuntime(32418): at android.os.Handler.dispatchMessage(Handler.java:104)
[ ] E/AndroidRuntime(32418): at android.os.Looper.loopOnce(Looper.java:242)
[ ] E/AndroidRuntime(32418): at android.os.Looper.loop(Looper.java:362)
[ ] E/AndroidRuntime(32418): at android.app.ActivityThread.main(ActivityThread.java:8448)
[ ] E/AndroidRuntime(32418): at java.lang.reflect.Method.invoke(Native Method)
[ ] E/AndroidRuntime(32418): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
[ ] E/AndroidRuntime(32418): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992)
[ +21 ms] I/Process (32418): Sending signal. PID: 32418 SIG: 9

1 Like

Hello Gireesh,

What is the callback or other function in which you are calling getUserID()?

Thank you for your patience,
Richard

I haven’t called that function. When a participant refreshes the browser on the web, the user leave event is triggered, and the app crashes with this error. However, it’s working fine on iOS with the same codebase.

Hello Gireesh,

Which version of the Flutter Video SDK are you using? If possible, can you please try it on the latest 2.1.10?

Thank you for your patience,
Richard

flutter_zoom_videosdk: ^1.12.10

This is the version we are using

Hello @gireesh.ks,

Would it be possible for you to try the latest version?

Working fine now. Thank you

1 Like