# Initialize alway return nullpointer in release

**URL:** <https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593>\
**Category:** Android\
**Created:** [July 5, 2021, 7:46am UTC](https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593 "2021-07-05T07:46:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shpy2001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shpy2001/32/3536_2.png) [@shpy2001](https://devforum.zoom.us/u/shpy2001)\
**Post date:** [July 5, 2021, 7:46am UTC](https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593/1 "2021-07-05T07:46:54Z")

</div>

**Description**  
Everything work well in debug. This errror only in release when shrinkResources true and minifyEnabled true in build.gradle with tools:shrinkMode=“strict” in res/raw/keep.xml .  
Remove tools:shrinkMode=“strict” will fix this. But i found that, in res/raw/ in apk file (or aab file) , file ios\_emoji.conf has size = 0 byte. Add “strict” , it will have ~53KB .

**Which Android Client SDK version?**  
v5.5.1.1319

---

<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:** [July 6, 2021, 6:03pm UTC](https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593/2 "2021-07-06T18:03:20Z")

</div>

Hi @shpy2001, thanks for the post.

Please try adding the following to your proguard config file:

```auto
-keep class us.zoom.**{*;}
-keep class com.zipow.**{*;}
-keep class us.zipow.**{*;}
-keep class org.webrtc.**{*;}
-keep class us.google.protobuf.**{*;}
-keep class com.google.crypto.tink.**{*;}
-keep class androidx.security.crypto.**{*;}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![shpy2001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shpy2001/32/3536_2.png) [@shpy2001](https://devforum.zoom.us/u/shpy2001)\
**Post date:** [July 8, 2021, 3:51am UTC](https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593/3 "2021-07-08T03:51:32Z")

</div>

Hi @jon.zoom , i already add those rule to proguard. The problem is at tools:shrinkMode=“strict” in res/raw/keep.xml.

---

<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:** [July 8, 2021, 9:31pm UTC](https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593/4 "2021-07-08T21:31:17Z")

</div>

Hi @shpy2001,

Thanks for giving that a try. We will need to investigate this and get back to you once we have any updates.

Thanks!

---

<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:** [August 8, 2021, 7:32am UTC](https://devforum.zoom.us/t/initialize-alway-return-nullpointer-in-release/53593/5 "2021-08-08T07:32:05Z")

</div>

Closed on August 8, 2021, 7:32am UTC

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