# com.zipow.videobox.util.PreferenceUtil.readBooleanValue (PreferenceUtil.java:464)

**URL:** <https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605>\
**Category:** Android\
**Created:** [February 5, 2021, 3:31am UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605 "2021-02-05T03:31:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavan.careers5208](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pavan.careers5208](https://devforum.zoom.us/u/pavan.careers5208)\
**Post date:** [February 5, 2021, 3:31am UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/1 "2021-02-05T03:31:19Z")

</div>

**Description**  
We have recently updated our Zoom SDK to v5.4.3.613. In this version, we are getting a Crashlytics error on Firebase which says

```
Fatal Exception: java.lang.NullPointerException
   Attempt to invoke interface method 'boolean android.content.SharedPreferences.getBoolean(java.lang.String, boolean)' on a null object reference
  com.zipow.videobox.util.PreferenceUtil.readBooleanValue (PreferenceUtil.java:464)

```

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

- Device: Samsung
- Model: Galaxy Galaxy M20
- OS: 10

**Which version?**  
v5.4.3.613

**Additional context**  
com.zipow.videobox.util.PreferenceUtil.readBooleanValue (PreferenceUtil.java:464)

com.zipow.cmmlib.AppUtil.getDataPath (AppUtil.java:138)

com.zipow.cmmlib.AppUtil.getDataPath (AppUtil.java:62)

com.zipow.videobox.VideoBoxApplication.removeTempFiles (VideoBoxApplication.java:1861)

com.zipow.videobox.VideoBoxApplication.initAppForSDK (VideoBoxApplication.java:2205)

com.zipow.videobox.VideoBoxApplication.onSDKCreated (VideoBoxApplication.java:2169)

com.zipow.videobox.VideoBoxApplication.initializeForSDK (VideoBoxApplication.java:2146)

us.zoom.sdk.ZoomSDK.initialize (ZoomSDK.java:492)

com.xxxx.zoom.ui.StreamingActivity.initZoom (StreamingActivity.java:100)

com.xxxx.zoom.ui.StreamingActivity.startStreaming (StreamingActivity.java:77)

com.xxxx.ui.activities.XXXXBaseActivity.checkAndStartLecture (XXXXBaseActivity.java:919)

com.xxxx.ui.activities.XXXXBaseActivity.access$checkAndStartLecture (XXXXBaseActivity.java:104)

com.xxxx.ui.activities.XXXXBaseActivity$observeViewModel$5.onChanged (XXXXBaseActivity.java:276)

com.xxxx.ui.activities.XXXXBaseActivity$observeViewModel$5.onChanged (XXXXBaseActivity.java:104)

-$$LambdaGroup$js$zIfsKK3Yrf08SHZobA71nO01JZQ.onChanged (-.java:37)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 5, 2021, 5:31pm UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/2 "2021-02-05T17:31:56Z")

</div>

Hi @pavan.careers5208, thanks for the post.

Sorry to hear you’re seeing a crash on the latest SDK version. Can you please let me know how frequently your users are seeing this crash? Have you been able to reproduce it at all?

Thanks!

---

<div class="post-metadata">

**Author:** ![pavan.careers5208](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pavan.careers5208](https://devforum.zoom.us/u/pavan.careers5208)\
**Post date:** [February 8, 2021, 5:14am UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/3 "2021-02-08T05:14:49Z")

</div>

@ [jon.lieblich](https://devforum.zoom.us/u/jon.lieblich)  
The top two issues on our list are these zoom related crashes. We are not able to reproduce this issue. But there are users who are seeing this crash. These crashes are seen only on latest SDK not before  
For frequency and users affected please check the image attached.

 ![Screen Shot 2021-02-08 at 10.42.23 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/7/d707a47af46a92d998ebb5a653f0bac24d4ded10.png)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 8, 2021, 6:19pm UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/4 "2021-02-08T18:19:10Z")

</div>

Hi @pavan.careers5208,

Thank you for the additional information. We will investigate this and let you know as soon as we have additional information. In the meantime, please let me know if you identify steps to reproduce this crash, as it may significantly improve the amount of time it takes for us to identify a fix.

Thanks!

---

<div class="post-metadata">

**Author:** ![AndroidDev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/androiddev/32/25320_2.png) [@AndroidDev](https://devforum.zoom.us/u/AndroidDev)\
**Post date:** [April 16, 2021, 10:55am UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/5 "2021-04-16T10:55:43Z")

</div>

Had a similar issue:

> [@Video SDK demo app crashes when starting](https://devforum.zoom.us/t/video-sdk-demo-app-crashes-when-starting/47005/3):
>
> This problem came back and the solution I mentioned in my original post no longer worked. I spent hours trying to figure out what the problem could be. The app works fine on a Nexus 6P running Android 8.1. But running it on a Pixel 2 XL (Android 11) would crash on startup. I tried the following: Uninstalled the app multiple times Cleaned my build Restarted device multiple times Made sure the app had all the required permissions In the end, I began to suspect that the version my app was runnin…

Try the following:

- Uninstall the app
- Delete your device’s backup in Google Drive
- Reinstall the app but don’t run it.
- Manually enable all the permissions that the app needs under the app’s settings
- Start the app

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 16, 2021, 5:16pm UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/6 "2021-04-16T17:16:05Z")

</div>

Thank you @AndroidDev for sharing your insight!

@pavan.careers5208, can you please let me know if you are still experiencing this on the latest SDK version?

Thanks!

---

<div class="post-metadata">

**Author:** ![AndroidDev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/androiddev/32/25320_2.png) [@AndroidDev](https://devforum.zoom.us/u/AndroidDev)\
**Post date:** [April 16, 2021, 5:44pm UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/7 "2021-04-16T17:44:03Z")

</div>

Yes, I’m using version 1.0.2 of the Video SDK. Until Zoom gets around to fixing this, I recommend that developers disable backups. This is done in the manifest:

```auto
<application
    android:allowBackup="false"
    android:fullBackupContent="false"
    tools:replace="android:allowBackup"
</application>

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 16, 2021, 10:05pm UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/8 "2021-04-16T22:05:20Z")

</div>

Hi @AndroidDev,

Apologies for any confusion, but the question was for the OP of this thread regarding the client SDK. I am happy to continue helping you with the Video SDK in the #mobile-video-sdk:android category. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![AndroidDev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/androiddev/32/25320_2.png) [@AndroidDev](https://devforum.zoom.us/u/AndroidDev)\
**Post date:** [April 17, 2021, 7:41am UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/9 "2021-04-17T07:41:39Z")

</div>

The same issue applies to both SDKs as they both use the same code (PreferenceUtil.java).

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 20, 2021, 3:47pm UTC](https://devforum.zoom.us/t/com-zipow-videobox-util-preferenceutil-readbooleanvalue-preferenceutil-java-464/42605/10 "2021-04-20T15:47:13Z")

</div>

Hi @AndroidDev,

In order to ensure that this forum is as easy for other users to navigate as possible, please keep all discussions regarding the Video SDK in the #mobile-video-sdk category.

Thank you for understanding!
