Prevent crash

pull/146/head
M66B 6 years ago
parent b736e38d3f
commit 24fa10b720

@ -105,7 +105,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
ivState.setImageResource(R.drawable.baseline_cloud_off_24); ivState.setImageResource(R.drawable.baseline_cloud_off_24);
ivState.setVisibility(account.synchronize ? View.VISIBLE : View.INVISIBLE); ivState.setVisibility(account.synchronize ? View.VISIBLE : View.INVISIBLE);
tvLast.setText(new Date(account.last_connected).toString()); tvLast.setText(account.last_connected == null ? null : new Date(account.last_connected).toString());
tvLast.setVisibility(debug ? View.VISIBLE : View.GONE); tvLast.setVisibility(debug ? View.VISIBLE : View.GONE);
tvError.setText(account.error); tvError.setText(account.error);

Loading…
Cancel
Save