zendesk / belvedere

An image picker library for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The app which uses Zendesk SDK is crashing while trying to open the file via belvedere's Floating Action Button

agap opened this issue · comments

Recently we've tried to update to the newest versions of Zedensk SDK on our Android app and we've noticed that the app is crashing on one of our users' devices.

The crash happens on Google Pixel 1 with Android 10 and the crash happens right when the user selects the image via the Floating Action Button (I assume this is part of belvedere library).

What's strange is that that this is the only device where this is happening, but it happens 100% of the time, no exceptions (pun not intended).

The relevant part of stack trace(from Google Play Console) looks like this:

at zendesk.belvedere.ImageStream$1.success (ImageStream.java:35)
at zendesk.belvedere.ImageStream$1.success (ImageStream.java:2)
at zendesk.belvedere.Callback$1.run (Callback.java:4)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7356)
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:930)

Here's also what we observed while we asked to provide the logs directly from our app:

Fatal exception: java.lang.NullPointerException: Attempt to invoke virtual method 'long zendesk.belvedere.BelvedereUi$UiConfig.getMaxFileSize()' on a null object reference