Zoom Meeting SDK(5.11.1.6928) crashed

When a user reopens the app after joining a call and minimizing it, we are getting a crash from the SDK.

Tested on Samsung Galaxy 6+, Android 10. Zoom SDK version used

Steps to reproduce:

  1. Open the app
  2. Join a call
  3. Minimize the application using the phone’s home button.
  4. Open the app

StackTrace:
2022-07-27 18:59:15.886 28171-28171/me.entri.entrime E/AndroidRuntime: FATAL EXCEPTION: main
Process: me.entri.entrime, PID: 28171
java.lang.RuntimeException: Unable to create service com.zipow.videobox.share.ScreenShareServiceForSDK: java.lang.NullPointerException: Attempt to invoke interface method ‘int android.content.SharedPreferences.getInt(java.lang.String, int)’ on a null object reference
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4293)
at android.app.ActivityThread.access$1500(ActivityThread.java:270)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
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 us.zoom.libtools.storage.PreferenceUtil.readIntValue(PreferenceUtil.java:2)
at us.zoom.sdk.SDKNotificationMgr.showConfNotificationForSDK(SDKNotificationMgr.java:6)
at com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate(ScreenShareServiceForSDK.java:7)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4281)
at android.app.ActivityThread.access$1500(ActivityThread.java:270)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)