Zendesk closes when trying to click on attach button in android | Community
Skip to main content

Zendesk closes when trying to click on attach button in android

  • November 12, 2021
  • 9 replies
  • 0 views

Himanshu13



Here is the error message in android studio logcat :
java.lang.NullPointerException: Attempt to read from field 'java.lang.Object androidx.core.util.Pair.first' on a null object reference
        at zendesk.belvedere.MediaIntent$CameraIntentBuilder.build(MediaIntent.java:185)
        at zendesk.belvedere.BelvedereUi$ImageStreamBuilder.withCameraIntent(BelvedereUi.java:87)
        at zendesk.support.request.AttachmentHelper.showImagePicker(AttachmentHelper.java:44)
        at zendesk.support.request.ComponentMessageComposer.onAddAttachmentsRequested(ComponentMessageComposer.java:94)
        at zendesk.support.request.ViewMessageComposer.notifyAddAttachmentsRequested(ViewMessageComposer.java:457)
        at zendesk.support.request.ViewMessageComposer.onClick(ViewMessageComposer.java:295)
        at android.view.View.performClick(View.java:7184)
        at android.view.View.performClickInternal(View.java:7161)
        at android.view.View.access$3500(View.java:818)
        at android.view.View$PerformClick.run(View.java:27677)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7562)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Any help will be appreciated

9 replies

Mick11
  • November 18, 2021

Hi Himanshu!

Thanks for flagging this with us. Do you mind opening a support ticket with the Android version and the test device that you are using please, and posting the ticket number here please? We will investigate to see if there's a possible issue with the SDK. Many thanks!


Ashish18
  • June 6, 2022

any update on this issue ? facing same problem

 


Eric27
  • June 6, 2022
Hey Ashish,

Can you provide more details? What version of the SDK's are you using? 

Thanks

Ashish18
  • June 8, 2022

Yes, I have unity App with Zendesk support and after updating to android 11, on Android, on clicking attachment  button Unity app crashed.

Zendesk plugin version 1.2.1


Ashish18
  • June 13, 2022

Any update on above issue.


Eric27
  • June 13, 2022
Hey Ashish,
 
Can you provide us logs of the crash that you're experiencing? This will help us to be able to debug more effectively. 

Thanks!

Ashish18
  • June 20, 2022

Text too long, please update


Ashish18
  • June 22, 2022

Hi Eric Nelson
could you please help me to fix this issue.


Eric27
  • June 22, 2022
Hey Ashish,

You're using an outdated version of the SDK, can you please upgrade to 1.2.5 to see if that resolves the issue?