Fix a crashing bug

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-12-20 22:56:28 +01:00
parent cc0a0c2d51
commit effcc34ae2

View File

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