Fix a null crash on back

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-01-12 09:49:58 +01:00
parent 86cf0754bc
commit 9669a36f0b

View file

@ -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;
}
}
/**