From 145087445d8e4d67410f87fdbb90b962f091b7e7 Mon Sep 17 00:00:00 2001 From: devgianlu Date: Sat, 11 Nov 2023 09:57:21 +0100 Subject: [PATCH] Avoid null pointer exception when showing tutorial --- app/src/main/java/com/gianlu/aria2app/main/MainActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/gianlu/aria2app/main/MainActivity.java b/app/src/main/java/com/gianlu/aria2app/main/MainActivity.java index 03157067..31ea1651 100644 --- a/app/src/main/java/com/gianlu/aria2app/main/MainActivity.java +++ b/app/src/main/java/com/gianlu/aria2app/main/MainActivity.java @@ -866,7 +866,8 @@ public void onItemCountUpdated(int count) { recyclerViewLayout.showList(); } - tutorialManager.tryShowingTutorials(this); + if (tutorialManager != null) + tutorialManager.tryShowingTutorials(this); } @Override