mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-19 05:30:15 +00:00
Fix a null crash on back
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
86cf0754bc
commit
9669a36f0b
@ -347,7 +347,11 @@ 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();
|
||||
if (lastActiveChildRouter != null) {
|
||||
return lastActiveChildRouter.handleBack();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user