# Getting NullPointerException crash in firebase using zoom v5.10.6

**URL:** <https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847>\
**Category:** Android\
**Created:** [February 9, 2023, 11:54am UTC](https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847 "2023-02-09T11:54:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardeepsinghsaggu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hardeepsinghsaggu/32/34035_2.png) [@hardeepsinghsaggu](https://devforum.zoom.us/u/hardeepsinghsaggu)\
**Post date:** [February 9, 2023, 11:54am UTC](https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847/1 "2023-02-09T11:54:28Z")

</div>

**Description**  
We recently updated our zoom meeting SDK version to 5.10.6 and a lot of people are facing null pointer exception crashes

**Which Android Meeting SDK version?**  
v5.10.6

**To Reproduce(If applicable)**  
Can’t reproduce it so far but have seen video of zoom SDK crashing, retrying to initialise while showing “connecting” toast

**Crash Report**

```auto
Caused by java.lang.NullPointerException: Attempt to invoke interface method 'int android.content.SharedPreferences.getInt(java.lang.String, int)' on a null object reference
       at com.zipow.videobox.util.PreferenceUtil.readIntValue(PreferenceUtil.java:2)
       at us.zoom.sdk.SDKNotificationMgr.showConfNotificationForSDK(SDKNotificationMgr.java:6)
       at com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate(ScreenShareServiceForSDK.java:2)
       at android.app.ActivityThread.handleCreateService(ActivityThread.java:4267)
       at android.app.ActivityThread.access$200(ActivityThread.java:242)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:7830)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1040)

```

**Smartphones in which this crash is prominent:**

- Device: [OPPO, Samsung, Vivo]
- OS: [Android - 13,12]  
Nearly all types of smartphones and OS versions are impacted

**Additional context**  
We can’t upgrade SDK to 5.11 or later versions as that requires gradle upgradations which in turn requires extensive testing. This is causing alot of issues and would request someone to look into this at priority.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 13, 2023, 4:20am UTC](https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847/2 "2023-02-13T04:20:25Z")

</div>

Hi @hardeepsinghsaggu ,

After upgrading to a specific version, do copy the gradle dependencies over to your project as well.

---

<div class="post-metadata">

**Author:** ![hardeepsinghsaggu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hardeepsinghsaggu/32/34035_2.png) [@hardeepsinghsaggu](https://devforum.zoom.us/u/hardeepsinghsaggu)\
**Post date:** [February 20, 2023, 6:30pm UTC](https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847/3 "2023-02-20T18:30:27Z")

</div>

Thanks for the response @chunsiong.zoom . I don’t think dependencies would be causing issues here since it happens intermittently and not reproduced in a lot of cases.

I see the change log for v5.11.3 and it says some `NullPointerException` was fixed.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/3/f33048cb840f835fffb19873fd7dcc73a2486fbb.jpeg)

> **[Zoom Meeting SDK - Android - 5.11.3](https://devsupport.zoom.us/hc/en-us/articles/12330589254669-Zoom-Meeting-SDK-Android-5-11-3)**
>
> Added
> 
> 
> New interface to append customized shared item and hide any shared item.
> 
> 
> New interface inICustomShareOptionItem
> String getTitle()
> int getIconResId()
> IShareOptionAction getAction()
> 
> 
> New i...

Can this be related to the above raised issue here?

Thanks!

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 21, 2023, 8:20am UTC](https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847/4 "2023-02-21T08:20:50Z")

</div>

seems 5.11.3 address the specific error which you are encountering.  
Could you try to do a branch of your project, and upgrade to 5.11.3 or higher for Zoom Meeting SDK?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 23, 2023, 6:21pm UTC](https://devforum.zoom.us/t/getting-nullpointerexception-crash-in-firebase-using-zoom-v5-10-6/82847/5 "2023-03-23T18:21:13Z")

</div>

Closed on March 23, 2023, 6:21pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
