mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Prevent NPE
This commit is contained in:
parent
d81bd45edd
commit
91586f6102
1 changed files with 4 additions and 2 deletions
|
@ -240,8 +240,10 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
|
|||
post(new RunnableEx("pro:disconnected") {
|
||||
@Override
|
||||
public void delegate() {
|
||||
ivConnected.setImageResource(R.drawable.twotone_cloud_off_24);
|
||||
ivConnected.setVisibility(View.VISIBLE);
|
||||
if (ivConnected != null) {
|
||||
ivConnected.setImageResource(R.drawable.twotone_cloud_off_24);
|
||||
ivConnected.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue