Ensure that Main.overview._overview exists before accessing it.
This commit is contained in:
parent
9cbbbab03a
commit
11deb05737
@ -33,10 +33,14 @@ var RealmManager = class {
|
|||||||
|
|
||||||
this._switchAnimation = new RealmSwitcher.ContextSwitchAnimationController(this._realmIndicator);
|
this._switchAnimation = new RealmSwitcher.ContextSwitchAnimationController(this._realmIndicator);
|
||||||
|
|
||||||
this._searchResults = Main.overview._overview.controls._searchController._searchResults;
|
if (Main.overview._overview) {
|
||||||
this._searchProvider = new RealmSearchProvider.RealmSearchProvider();
|
this._searchResults = Main.overview._overview.controls._searchController._searchResults;
|
||||||
this._searchProvider.createResultDisplay(this._searchResults);
|
this._searchProvider = new RealmSearchProvider.RealmSearchProvider();
|
||||||
this._searchResults._registerProvider(this._searchProvider);
|
this._searchProvider.createResultDisplay(this._searchResults);
|
||||||
|
this._searchResults._registerProvider(this._searchProvider);
|
||||||
|
} else {
|
||||||
|
log("Not creating search provider because Main.overview._overview does not exist");
|
||||||
|
}
|
||||||
|
|
||||||
this._frameManager = new RealmWindowFrame.WindowFrameManager();
|
this._frameManager = new RealmWindowFrame.WindowFrameManager();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user