# Flutter - App crushed when add a participate into meeting

**URL:** <https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562>\
**Category:** Video SDK\
**Created:** [February 26, 2025, 5:47am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562 "2025-02-26T05:47:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahabub1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mahabub1/32/67525_2.png) [@Mahabub1](https://devforum.zoom.us/u/Mahabub1)\
**Post date:** [February 26, 2025, 5:47am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/1 "2025-02-26T05:47:26Z")

</div>

I used flutter\_zoom\_videodk package for intigrate Zoom video meeting which version is **1.14.0**.

Basically, my token came from backend service. After I used the token, I successfully joined the session, and the show camera display was viewed perfectly. But a remote user tried to join the meeting, and then my app was crushed. I share my console in log below:

D/ZoomVideoSdkDebug(11102): Join Session successfully  
D/ZoomVideoSdkDebug(11102): onError, error: ZoomVideoSDKError\_Session\_Already\_In\_Progress  
I/GED (11102): ged\_boost\_gpu\_freq, level 100, eOrigin 2, final\_idx 2, oppidx\_max 2, oppidx\_min 0  
W/.local\_practice(11102): type=1400 audit(0.0:18413): avc: denied { ioctl } for path=“socket:[104193375]” dev=“sockfs” ino=104193375 ioctlcmd=0x8927 scontext=u:r:untrusted\_app:s0:c229,c258,c512,c768 tcontext=u:r:untrusted\_app:s0:c229,c258,c512,c768 tclass=udp\_socket permissive=0 app=com.example.local\_practice  
W/.local\_practice(11102): type=1400 audit(0.0:18414): avc: denied { ioctl } for path=“socket:[104193375]” dev=“sockfs” ino=104193375 ioctlcmd=0x8927 scontext=u:r:untrusted\_app:s0:c229,c258,c512,c768 tcontext=u:r:untrusted\_app:s0:c229,c258,c512,c768 tclass=udp\_socket permissive=0 app=com.example.local\_practice  
W/Thread-36(11102): type=1400 audit(0.0:18415): avc: denied { ioctl } for path=“socket:[104192100]” dev=“sockfs” ino=104192100 ioctlcmd=0x8927 scontext=u:r:untrusted\_app:s0:c229,c258,c512,c768 tcontext=u:r:untrusted\_app:s0:c229,c258,c512,c768 tclass=udp\_socket permissive=0 app=com.example.local\_practice

I/flutter (11102): ✅ Session Joined: {sessionUser: {“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}}  
I/flutter (11102): 🔊 Audio Status Changed: {changedUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]}  
D/ZoomVideoSdkDebug(11102): onUserVideoStatusChanged, userList: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]  
D/ZoomVideoSdkDebug(11102): onUserActiveAudioChanged, changedUsers:   
I/flutter (11102): 📹 Video Status Changed: {changedUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]}  
D/ZoomVideoSdkDebug(11102): onUserVideoStatusChanged, userList: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]  
I/flutter (11102): 📹 Video Status Changed: {changedUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]}  
D/ZoomVideoSdkDebug(11102): onCommandChannelConnectResult, success: true  
D/ZoomVideoSdkDebug(11102): onUserActiveAudioChanged, changedUsers:   
D/ZoomVideoSdkDebug(11102): onCloudRecordingStatus, status: ZoomVideoSDKRecordingStatus\_Start  
D/ZoomVideoSdkDebug(11102): onCloudRecordingStatus handler != null  
E/ActivityThread(11102): Failed to find provider info for com.oplus.statistics.provider  
E/OplusStatistics–(11102): IllegalArgumentException:java.lang.IllegalArgumentException: Unknown URL content://com.oplus.statistics.provider/track\_event  
D/AudioManagerExtImpl(11102): getStreamVolume packageName=com.example.local\_practice, index=1, streamType=0  
D/AudioManagerExtImpl(11102): getStreamVolume packageName=com.example.local\_practice, index=1, streamType=0  
D/ZoomVideoSdkDebug(11102): onUserJoin, userList: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]  
D/ZoomVideoSdkDebug(11102): onUserHostChanged, changedUser: {“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}  
I/flutter (11102): ✅ User Joined: {remoteUsers: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}], joinedUsers: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]}  
D/ZoomVideoSdkDebug(11102): onUserManagerChanged, changedUser: {“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}

D/ZoomVideoSdkDebug(11102): onUserVideoStatusChanged, userList: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]

I/flutter (11102): 📹 Video Status Changed: {changedUsers: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]}  
D/ZoomVideoSdkDebug(11102): onUserAudioStatusChanged, userList: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]  
I/flutter (11102): 🔊 Audio Status Changed: {changedUsers: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]}  
D/ZoomVideoSdkDebug(11102): onUserLeave, userList: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]  
I/flutter (11102): ❌ User Left: {remoteUsers: , leftUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16793600”,“isVideoSpotLighted”:false}]}  
D/AndroidRuntime(11102): Shutting down VM  
E/AndroidRuntime(11102): FATAL EXCEPTION: main  
E/AndroidRuntime(11102): Process: com.example.local\_practice, PID: 11102  
E/AndroidRuntime(11102): java.lang.NullPointerException: Attempt to invoke interface method ‘java.lang.String us.zoom.sdk.ZoomVideoSDKUser.getUserID()’ on a null object reference  
E/AndroidRuntime(11102): at com.flutterzoom.videosdk.FlutterZoomVideoSdkUser.jsonUser(FlutterZoomVideoSdkUser.java:54)  
E/AndroidRuntime(11102): at com.flutterzoom.videosdk.FlutterZoomVideoSdkPlugin.onUserHostChanged(FlutterZoomVideoSdkPlugin.java:1085)  
E/AndroidRuntime(11102): at us.zoom.internal.ZoomVideoSDKDelegateHelper$1$12.run(ZoomVideoSDKDelegateHelper.java:2)  
E/AndroidRuntime(11102): at android.os.Handler.handleCallback(Handler.java:938)  
E/AndroidRuntime(11102): at android.os.Handler.dispatchMessage(Handler.java:99)  
E/AndroidRuntime(11102): at android.os.Looper.loopOnce(Looper.java:233)  
E/AndroidRuntime(11102): at android.os.Looper.loop(Looper.java:344)  
E/AndroidRuntime(11102): at android.app.ActivityThread.main(ActivityThread.java:8249)  
E/AndroidRuntime(11102): at java.lang.reflect.Method.invoke(Native Method)  
E/AndroidRuntime(11102): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)  
E/AndroidRuntime(11102): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)  
I/Process (11102): Sending signal. PID: 11102 SIG: 9

@richard.zoom

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [February 27, 2025, 8:53am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/2 "2025-02-27T08:53:56Z")

</div>

> [@Mahabub1](#):
>
> java.lang.NullPointerException: Attempt to invoke interface method ‘java.lang.String us.zoom.sdk.ZoomVideoSDKUser.getUserID()’ on a null object reference

Hi as the error states you called `getUserID` method on a null reference, before calling the method please check that the user reference exists.

---

<div class="post-metadata">

**Author:** ![Mahabub1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mahabub1/32/67525_2.png) [@Mahabub1](https://devforum.zoom.us/u/Mahabub1)\
**Post date:** [February 27, 2025, 11:24am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/3 "2025-02-27T11:24:05Z")

</div>

Thank you for the reply.

Basically, when I joined the session with no host role, it was okay and showed the camera view perfectly. After that host user want to join the session as a host, and then my app crashed. If you see my console log, then you will see that a user which isHost property is true And userId also not null.

I gave some console log print is given below for better understand:

→ Zoom SDK initialized successfully.

→ ✅ Session Joined: {sessionUser: {“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}} (It’s me).

→ I/flutter (18260): 🔊 Audio Status Changed: {changedUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]}

→ D/ZoomVideoSdkDebug(18260): onUserVideoStatusChanged, userList: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]

→ D/ZoomVideoSdkDebug(18260): onUserActiveAudioChanged, changedUsers:   
I/flutter (18260): 📹 Video Status Changed: {changedUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]}

→ D/ZoomVideoSdkDebug(18260): onUserVideoStatusChanged, userList: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]

→ I/flutter (18260): 📹 Video Status Changed: {changedUsers: [{“isHost”:false,“customUserId”:“”,“isManager”:false,“userName”:“Test”,“userId”:“16778240”,“isVideoSpotLighted”:false}]}

// This is all parts of my join session and display camera view.  
Now I share all console log when a host join.

→ D/ZoomVideoSdkDebug(18260): onUserJoin, userList: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16792576”,“isVideoSpotLighted”:false}]

→ D/ZoomVideoSdkDebug(18260): onUserHostChanged, changedUser: {“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16792576”,“isVideoSpotLighted”:false}

→ D/ZoomVideoSdkDebug(18260): onUserManagerChanged, changedUser: {“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16792576”,“isVideoSpotLighted”:false}

→ D/ZoomVideoSdkDebug(18260): onUserVideoStatusChanged, userList: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16792576”,“isVideoSpotLighted”:false}]

→ D/ZoomVideoSdkDebug(18260): onUserAudioStatusChanged, userList: [{“isHost”:true,“customUserId”:“”,“isManager”:false,“userName”:“zawad”,“userId”:“16792576”,“isVideoSpotLighted”:false}]

That’s all parts of log when a host join.

At this time onUserLeave event is triggered. Then host left. After that app crashed.

The app crash error came from the native side. i am not the native android developer. So please help me to figure out the issue and give me proper guidelines.

Thanks in advance.

@ekaansh.zoom

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [March 4, 2025, 2:16pm UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/4 "2025-03-04T14:16:28Z")

</div>

Can you share the `onUserLeave` event listener code? Somewhere in your app you’re calling a method that’s using the userId of a `null` user, it’s hard to say where exactly but I would double check the leave callback to see if that has any reference that might be null.

---

<div class="post-metadata">

**Author:** ![ysohma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ysohma/32/68164_2.png) [@ysohma](https://devforum.zoom.us/u/ysohma)\
**Post date:** [March 25, 2025, 5:50am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/5 "2025-03-25T05:50:34Z")

</div>

@ekaansh.zoom  
I’m also facing similar problem on v1.12.10. As @Mahabub1 mentioned, when host user joined/leaved, app sometimes crash.

The error is coming from the onUserHostChanged event handler, where getUserId() is returning null. This happens inside the FlutterZoomVideoSdkPlugin.java, so I can’t avoid it even if I use getUserId() in my code.

Therefore, I also hope the SDK will be fixed.

---

<div class="post-metadata">

**Author:** ![AwaisJabbar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/awaisjabbar/32/68165_2.png) [@AwaisJabbar](https://devforum.zoom.us/u/AwaisJabbar)\
**Post date:** [March 25, 2025, 10:31am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/6 "2025-03-25T10:31:54Z")

</div>

It looks like your app is crashing due to a **NullPointerException** when trying to access the `getUserID()` method on a null object. This usually happens when a user reference is missing or has already been removed from the session.

You might want to check if the user object is null before calling `getUserID()`, especially in the `onUserHostChanged` method. Adding a null check before accessing user properties should help prevent crashes.

---

<div class="post-metadata">

**Author:** ![richard.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.zoom/32/41061_2.png) [@richard.zoom](https://devforum.zoom.us/u/richard.zoom)\
**Post date:** [April 17, 2025, 2:39am UTC](https://devforum.zoom.us/t/flutter-app-crushed-when-add-a-participate-into-meeting/128562/7 "2025-04-17T02:39:08Z")

</div>

Hello @Mahabub1 , @ysohma ,

Can you please upgrade to the latest Zoom Video SDK for Flutter version 2.1.10 and let us know if this error still occurs there?

Thank you for your patience,  
Richard
