mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 05:55:39 +03:00
Avoid NPE in deleteAvatar#onError
Exception java.lang.NullPointerException: at com.nextcloud.talk.controllers.ProfileController$save$1.onError (ProfileController.kt:457) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated (ObservableObserveOn.java:281) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal (ObservableObserveOn.java:172) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run (ObservableObserveOn.java:255) at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:124) at android.os.Handler.handleCallback (Handler.java:883) at android.os.Handler.dispatchMessage (Handler.java:100) at android.os.Looper.loop (Looper.java:237) at android.app.ActivityThread.main (ActivityThread.java:8167) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100) Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
60f0c1e079
commit
69dae28f83
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ class ProfileController : BaseController(R.layout.controller_profile) {
|
|||
}
|
||||
|
||||
override fun onError(e: Throwable) {
|
||||
Toast.makeText(applicationContext, "Error", Toast.LENGTH_LONG).show()
|
||||
Log.e(TAG, "Failed to delete avatar", e)
|
||||
}
|
||||
|
||||
override fun onComplete() {
|
||||
|
|
Loading…
Reference in a new issue