From e33ba51945abe25bd3a17bb78eee38a074e824f6 Mon Sep 17 00:00:00 2001 From: Keramat Jokar Date: Tue, 23 Nov 2021 20:15:13 +0330 Subject: [PATCH] Fixed a possible crash problem in some time --- .../src/main/java/org/telegram/ui/LaunchActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java index cdd061243..d6c394a27 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java @@ -5641,6 +5641,8 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa actionBarLayout.rebuildAllFragmentViews(last, last); } } - drawerLayoutAdapter.notifyDataSetChanged(); + if (drawerLayoutAdapter != null) { + drawerLayoutAdapter.notifyDataSetChanged(); + } } }