Skip to content

Commit fdabcec

Browse files
committed
Action bar safety checks
1 parent 8de0276 commit fdabcec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/action-bar/action-bar.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,14 @@ export class ActionBar extends common.ActionBar {
301301

302302
public _onTitlePropertyChanged() {
303303
var topFrame = frame.topmost();
304-
if (topFrame && topFrame.currentPage === this.page) {
304+
if (this._toolbar && topFrame && topFrame.currentPage === this.page) {
305305
this._updateTitleAndTitleView();
306306
}
307307
}
308308

309309
public _onIconPropertyChanged() {
310310
var topFrame = frame.topmost();
311-
if (topFrame && topFrame.currentPage === this.page) {
311+
if (this._toolbar && topFrame && topFrame.currentPage === this.page) {
312312
this._updateIcon();
313313
}
314314
}

0 commit comments

Comments
 (0)