1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Prevent NPE

This commit is contained in:
M66B 2024-02-15 08:49:16 +01:00
parent d81bd45edd
commit 91586f6102

View file

@ -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);
}
}
});
}