mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-28 01:24:03 +03:00
catch NPE for binding (loadCurrentStatus#onError)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
2615da0121
commit
0dbe8c0f2c
1 changed files with 5 additions and 1 deletions
|
@ -233,7 +233,11 @@ public class ChooseAccountDialogFragment extends DialogFragment {
|
|||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
Log.e(TAG, "Can't receive user status from server. ", e);
|
||||
binding.statusView.setVisibility(View.GONE);
|
||||
try {
|
||||
binding.statusView.setVisibility(View.GONE);
|
||||
} catch (NullPointerException npe) {
|
||||
Log.i(TAG, "UI already teared down", npe);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue