Crash when removing earphones

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

Which Android Video SDK version?

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(
       at us.zoom.androidlib.util.HeadsetUtil.a(
       at us.zoom.androidlib.util.HeadsetUtil.a(
       at us.zoom.androidlib.util.HeadsetUtil$
       at android.os.Handler.handleCallback(
       at android.os.Handler.dispatchMessage(
       at android.os.Looper.loopOnce(
       at android.os.Looper.loop(
       at java.lang.reflect.Method.invoke(


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.