Skip to content

Commit 2c02b35

Browse files
committed
Merge branch 'ErjanGavalji/cherry-pick-ios9-fix' into release
2 parents d79dd2e + 9f75f58 commit 2c02b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/action-bar/action-bar.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class ActionBar extends common.ActionBar {
4444

4545
// Find previous ViewController in the navigation stack
4646
var indexOfViewController = navController.viewControllers.indexOfObject(viewController);
47-
if (indexOfViewController !== NSNotFound && indexOfViewController > 0) {
47+
if (indexOfViewController < navController.viewControllers.count && indexOfViewController > 0) {
4848
previousController = navController.viewControllers[indexOfViewController - 1];
4949
}
5050

0 commit comments

Comments
 (0)