mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
fix(ios): guard accessing actionbar (#10033)
This commit is contained in:
@ -93,11 +93,7 @@ export class ActionBar extends ActionBarBase {
|
||||
}
|
||||
|
||||
const viewController = <UIViewController>page.ios;
|
||||
if (viewController.navigationController !== null) {
|
||||
return viewController.navigationController.navigationBar;
|
||||
}
|
||||
|
||||
return null;
|
||||
return viewController?.navigationController?.navigationBar;
|
||||
}
|
||||
|
||||
[accessibilityValueProperty.setNative](value: string): void {
|
||||
|
Reference in New Issue
Block a user