Prevent crash

This commit is contained in:
M66B
2018-12-04 08:23:19 +01:00
parent 947aff9aea
commit fb3ece2bf7

View File

@@ -1473,7 +1473,8 @@ public class FragmentMessages extends FragmentEx {
@Override
public void onLoaded() {
pbWait.setVisibility(View.GONE);
if (messages.getValue() == null || messages.getValue().size() == 0)
if (messages != null &&
messages.getValue() == null || messages.getValue().size() == 0)
tvNoEmail.setVisibility(View.VISIBLE);
}