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
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:
What is the frequency of these issues occur?
Is this reproducible with our demo app? If so, how to reproduce both issues with our demo app?
Could you provide SDK logs for further investigation?
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:
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)
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.