Prevent NPE

pull/214/head
M66B 10 months ago
parent d81bd45edd
commit 91586f6102

@ -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…
Cancel
Save