Bug: RocketChat [v,3.4.0] App collapsed when I want to upload my dp through take a photo

in #utopian-io5 years ago

Project Information

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

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)```
Sort:  

Hi, @darewealth. Thank you for contributing via Utopian. I could not reproduce this bug on android version 7.0. It seems you are not using the latest version of the application. The most recent version is 3.4.1. I am very sure that this bug those not exist on that version since there are already several PRs/commits made to fix this specif issue on the GitHub repository. Please consider downloading the latest version and test. Thank you.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @knowledges! Keep up the good work!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63630.04
ETH 2656.44
USDT 1.00
SBD 2.81