# Crashes on moving from waiting room

**URL:** <https://devforum.zoom.us/t/crashes-on-moving-from-waiting-room/14368>\
**Category:** Android\
**Created:** [April 22, 2020, 6:10am UTC](https://devforum.zoom.us/t/crashes-on-moving-from-waiting-room/14368 "2020-04-22T06:10:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agarwal.sbh](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@agarwal.sbh](https://devforum.zoom.us/u/agarwal.sbh)\
**Post date:** [April 22, 2020, 6:10am UTC](https://devforum.zoom.us/t/crashes-on-moving-from-waiting-room/14368/1 "2020-04-22T06:10:09Z")

</div>

**Description**  
This is happening in android at times when the user is moved from waiting room to the meeting  
Gettting this error randomly on production where the app doesn’t even start post this error starts hitting  
java.lang.RuntimeException: Unable to create service com.zipow.videobox.share.ScreenShareServiceForSDK: 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.handleCreateService(ActivityThread.java:2785)  
at android.app.ActivityThread.access$1800(ActivityThread.java:151)  
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)  
at android.os.Handler.dispatchMessage(Handler.java:102)  
at android.os.Looper.loop(Looper.java:135)  
at android.app.ActivityThread.main(ActivityThread.java:5268)  
at java.lang.reflect.Method.invoke(Method.java:-2)  
at java.lang.reflect.Method.invoke(Method.java:372)  
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)

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.readIntValue(PreferenceUtil.java:311)  
at com.zipow.videobox.util.NotificationMgr.showConfNotificationForSDK(NotificationMgr.java:975)  
at com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate(ScreenShareServiceForSDK.java:23)  
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2775)  
at android.app.ActivityThread.access$1800(ActivityThread.java:151)  
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)  
at android.os.Handler.dispatchMessage(Handler.java:102)  
at android.os.Looper.loop(Looper.java:135)  
at android.app.ActivityThread.main(ActivityThread.java:5268)  
at java.lang.reflect.Method.invoke(Method.java:-2)  
at java.lang.reflect.Method.invoke(Method.java:372)  
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)  
**Which version?**  
[v4.6.15086.0209]

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

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

---

<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:** [April 23, 2020, 7:34am UTC](https://devforum.zoom.us/t/crashes-on-moving-from-waiting-room/14368/2 "2020-04-23T07:34:59Z")

</div>

Hi [agarwal.sbh](https://devforum.zoom.us/u/agarwal.sbh),

Thanks for the post. Could you have a try with the latest version of SDK: [v4.6.15801.0403](https://github.com/zoom/zoom-sdk-android/commit/fe75850e4f391650ee8e2b3ea82b0732c48939c3), this issue has been fixed in this version.

Hope this helps. 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, 8:54pm UTC](https://devforum.zoom.us/t/crashes-on-moving-from-waiting-room/14368/3 "2020-08-21T20:54:08Z")

</div>

Closed on August 21, 2020, 8:54pm UTC


