From effcc34ae242cab966b775b40f88102fcc279ee4 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Wed, 20 Dec 2017 22:56:28 +0100 Subject: [PATCH] Fix a crashing bug Signed-off-by: Mario Danic --- .../base/bottomnavigation/BottomNavigationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/base/bottomnavigation/BottomNavigationController.java b/app/src/main/java/com/nextcloud/talk/controllers/base/bottomnavigation/BottomNavigationController.java index e945fce36..d20d265e1 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/base/bottomnavigation/BottomNavigationController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/base/bottomnavigation/BottomNavigationController.java @@ -350,7 +350,7 @@ public abstract class BottomNavigationController extends BaseController { * The childRouter should handleBack, * as this BottomNavigationController doesn't have a back step sensible to the user. */ - return lastActiveChildRouter.handleBack(); + return lastActiveChildRouter != null && lastActiveChildRouter.handleBack(); } /**