Urgent - Unable to stop service

1- Caused by java.lang.NullPointerException
Attempt to invoke virtual method ‘android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)’ on a null object reference
com.zipow.videobox.util.PreferenceUtil.readBooleanValue

com.zipow.videobox.util.PreferenceUtil.readBooleanValue (PreferenceUtil.java:279)
com.zipow.videobox.share.ScreenShareServiceForSDK.onDestroy (ScreenShareServiceForSDK.java:37)

Android SDK (4.6.21666.0429)

2- Fatal Exception: java.lang.RuntimeException
com.zipow.videobox.util.PreferenceUtil.readIntValue (PreferenceUtil.java:311)
com.zipow.videobox.util.NotificationMgr.showConfNotificationForSDK (NotificationMgr.java:975)
com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate (ScreenShareServiceForSDK.java:23)
Unable to stop service com.zipow.videobox.share.ScreenShareServiceForSDK@e300f92: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)’ on a null object reference

Android SDK (v4.6.15086.0209)

Device : Oppo A37F. (Android : 5.1.1)

getting this from fabric why is this issue

Awaiting response as our users are not able to connect with Zoom

Hi @helloparent,

Thanks for the post. Both issues should be fixed in version 4.6.21666.0429. If you are still facing this issue with 0429, could you provide the following information:

  1. What is the frequency of these issues occur?
  2. Is this reproducible with our demo app? If so, how to reproduce both issues with our demo app?
  3. Could you provide SDK logs for further investigation?

Thanks!

Hi,

This is happening every time with this device. I have shared firebase logs and the SDK is integrated in our app. We are not sure if it can be reproducible in your demo app.

In general, as soon as we try to start a meeting or join a meeting, it crashes.

There is a similar forum which is facing this issue:

Hey @helloparent,

Carson has replied in your linked thread. Let’s communicate there for now on.

Thanks,
Tommy

@Carson_Chen

Hi Carson, our users are still experiencing this crash on the 4.6.21666.0429 SDK, is it fixed in the latest SDK that released on July? It’s happening on all kinds of devices, not just Oppo / Vivo devices.

Here are the crash logs:

Fatal Exception: java.lang.RuntimeException: Unable to stop service com.zipow.videobox.share.ScreenShareServiceForSDK@f0bc27c: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference
       at android.app.ActivityThread.handleStopService(ActivityThread.java:4111)
       at android.app.ActivityThread.access$2500(ActivityThread.java:221)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1902)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:158)
       at android.app.ActivityThread.main(ActivityThread.java:7224)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)


Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference
       at com.zipow.videobox.util.PreferenceUtil.readBooleanValue(PreferenceUtil.java:277)
       at com.zipow.videobox.share.ScreenShareServiceForSDK.onDestroy(ScreenShareServiceForSDK.java:37)
       at android.app.ActivityThread.handleStopService(ActivityThread.java:4092)
       at android.app.ActivityThread.access$2500(ActivityThread.java:221)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1902)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:158)
       at android.app.ActivityThread.main(ActivityThread.java:7224)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Thanks a lot!

Hi @gerger,

The issue with Oppo/Vivo devices has been fixed in the latest release (https://github.com/zoom/zoom-sdk-android/releases/tag/v5.0.24437.0708). We have not received any other users reporting this issue happening on devices with other brands. Please have a try with the latest version of SDK and see if the issue persists.

Thanks!