# Urgent - Unable to stop service

**URL:** <https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751>\
**Category:** Android\
**Created:** [June 1, 2020, 7:18am UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751 "2020-06-01T07:18:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [June 1, 2020, 7:18am UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/1 "2020-06-01T07:18:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [June 3, 2020, 12:24pm UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/2 "2020-06-03T12:24:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 7:01am UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/3 "2020-06-04T07:01:12Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [June 4, 2020, 10:33am UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/4 "2020-06-04T10:33:40Z")

</div>

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:

> [@App is crashing during zoom sdk initialization (Android app)](https://devforum.zoom.us/t/app-is-crashing-during-zoom-sdk-initialization-android-app/19973/4):
>
> Hi Carson, Thanks for reply. Here I am sharing the log: 06-04 14:01:41.880 W/linker (15858): /data/app/\*\*.\*\*\*\*.app-1/lib/arm64/libzoom\_stlport.so: unused DT entry: type 0x6ffffffe arg 0x218a8 06-04 14:01:41.880 W/linker (15858): /data/app/\*\*.\*\*\*\*.app-1/lib/arm64/libzoom\_stlport.so: unused DT entry: type 0x6fffffff arg 0x3 06-04 14:01:41.880 W/linker (15858): Unsupported flags DT\_FLAGS\_1=0x9 06-04 14:01:41.880 W/linker (15858): /data/app/\*\*.\*\*\*\*.app-1/lib/arm64/libcrypto\_sb.so: unused DT entry…

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 19, 2020, 11:35pm UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/5 "2020-06-19T23:35:24Z")

</div>

Hey @helloparent,

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

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![gerger](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@gerger](https://devforum.zoom.us/u/gerger)\
**Post date:** [July 10, 2020, 6:58pm UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/6 "2020-07-10T18:58:18Z")

</div>

@carson.zoom

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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 11, 2020, 1:45am UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/7 "2020-07-11T01:45:45Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:39pm UTC](https://devforum.zoom.us/t/urgent-unable-to-stop-service/19751/8 "2020-08-21T22:39:56Z")

</div>

Closed on August 21, 2020, 10:39pm UTC


