Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

App collapsed when I want to upload my dp through take a photo #2319

Open
darewealth opened this issue May 15, 2019 · 0 comments
Open

App collapsed when I want to upload my dp through take a photo #2319

darewealth opened this issue May 15, 2019 · 0 comments

Comments

@darewealth
Copy link

darewealth commented May 15, 2019

Describe the bug

When I take a picture to upload as my DP and use the tick button to save it, the app crashed.

To Reproduce

  • Lunch the app

  • Click on the menu icon

  • Click on the profile picture

  • Click on the profile picture to select the function you want to use

  • Then select "Take a photo" snap and click the √ function to upload and see the error.

Expected behavior

I expect that I should be able to save the picture without any issue.

Screenshot

https://youtu.be/VTFuhp0AUwA

Devices and Versions

  • Rocket.Chat.Android version: 3.4.0 (2068)

  • Rocket.Chat Server version: (1.1.0-develop)

  • Device model: (itel)

  • Android version 6.1

Log.

05-15 23:13:05.900   687   687 E AndroidRuntime: Process: chat.rocket.android, PID: 687
05-15 23:13:05.900   687   687 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.drawee.view.SimpleDraweeView.setImageURI(java.lang.String)' on a null object reference
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at chat.rocket.android.profile.ui.ProfileFragment.reloadUserAvatar(ProfileFragment.kt:149)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at chat.rocket.android.profile.presentation.ProfilePresenter$preparePhotoAndUpdateAvatar$1.invokeSuspend(ProfilePresenter.kt:168)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:739)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:5452)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
05-15 23:13:05.900   687   687 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant