mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
Check for null
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
d24c96e573
commit
bf71a90b8c
1 changed files with 5 additions and 5 deletions
|
@ -219,11 +219,11 @@ public abstract class BottomNavigationController extends BaseController {
|
|||
* BottomNavigationController#getControllerFor(int)}, using a {@link FadeChangeHandler}.
|
||||
*/
|
||||
protected void resetCurrentBackstack() {
|
||||
lastActiveChildRouter
|
||||
.setRoot(
|
||||
RouterTransaction.with(this.getControllerFor(currentlySelectedItemId))
|
||||
.pushChangeHandler(new FadeChangeHandler())
|
||||
.popChangeHandler(new FadeChangeHandler()));
|
||||
if (lastActiveChildRouter != null) {
|
||||
lastActiveChildRouter.setRoot(RouterTransaction.with(this.getControllerFor(currentlySelectedItemId))
|
||||
.pushChangeHandler(new FadeChangeHandler())
|
||||
.popChangeHandler(new FadeChangeHandler()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue