Fix possible NPEs with megaphone container.

This commit is contained in:
Greyson Parrelli authored and Nicholas Tinsley committed 2023-06-26 15:09:36 -04:00
1 parent 92339dfdcf
commit b4fd57d900
1 file changed
+2 -2
@@ -1324,7 +1324,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
if (cameraFab != null) {
ViewUtil.fadeOut(cameraFab, fadeDuration);
}
if (megaphoneContainer.resolved()) {
if (megaphoneContainer != null && megaphoneContainer.resolved()) {
ViewUtil.fadeOut(megaphoneContainer.get(), fadeDuration);
}
}
@@ -1336,7 +1336,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
if (cameraFab != null) {
ViewUtil.fadeIn(cameraFab, fadeDuration);
}
if (megaphoneContainer.resolved()) {
if (megaphoneContainer != null && megaphoneContainer.resolved()) {
ViewUtil.fadeIn(megaphoneContainer.get(), fadeDuration);
}
}