Crash when removing earphones

Description
Zoom SDK throws an NPE causing the app to crash after removing headphones when the session is ended.

Which Android Video SDK version?
1.6.0

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Start a session and connect earphones
  2. Unmute the microphone to test audio is working
  3. End session
  4. Remove headphones

Smartphone (please complete the following information):

  • Device: Nokia T10
  • OS: Android 12

Additional context
Video SDK V1.6.0

Stack trace

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean us.zoom.internal.RTCConference.isInConference()' on a null object reference
       at us.zoom.androidlib.util.HeadsetUtil.b(HeadsetUtil.java:10)
       at us.zoom.androidlib.util.HeadsetUtil.a(HeadsetUtil.java:60)
       at us.zoom.androidlib.util.HeadsetUtil.a(HeadsetUtil.java:2)
       at us.zoom.androidlib.util.HeadsetUtil$c.run(HeadsetUtil.java:1)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7941)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

@sohel-skylark,

Thank you for posting in the Zoom Developer Forum. It looks like you are seeing NPE is causing the app to crash after removing the headphones. Are you only seeing this behavior when disconnecting the headphone from a particular device or you are seeing this on all devices?

I am able to reproduce this on all devices.

Thanks for the details. Can you share if this behavior is reproducible with Andriod Video SDK Sample? In my testing, I am not seeing the same behavior.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.