| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -595,13 +595,13 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition | |||
| 595 | 595 | } | |
| 596 | 596 | ||
| 597 | 597 | public loadView(view: ViewBase): void { | |
| 598 | - if (!view.isLoaded) { | ||
| 598 | + if (view && !view.isLoaded) { | ||
| 599 | 599 | view.callLoaded(); | |
| 600 | 600 | } | |
| 601 | 601 | } | |
| 602 | 602 | ||
| 603 | 603 | public unloadView(view: ViewBase): void { | |
| 604 | - if (view.isLoaded) { | ||
| 604 | + if (view && view.isLoaded) { | ||
| 605 | 605 | view.callUnloaded(); | |
| 606 | 606 | } | |
| 607 | 607 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -178,7 +178,7 @@ function initializeDialogFragment() { | |||
| 178 | 178 | } | |
| 179 | 179 | ||
| 180 | 180 | const owner = this.owner; | |
| 181 | - if (!owner.isLoaded) { | ||
| 181 | + if (owner && !owner.isLoaded) { | ||
| 182 | 182 | owner.callLoaded(); | |
| 183 | 183 | } | |
| 184 | 184 | ||
@@ -194,7 +194,7 @@ function initializeDialogFragment() { | |||
| 194 | 194 | } | |
| 195 | 195 | ||
| 196 | 196 | const owner = this.owner; | |
| 197 | - if (owner.isLoaded) { | ||
| 197 | + if (owner && owner.isLoaded) { | ||
| 198 | 198 | owner.callUnloaded(); | |
| 199 | 199 | } | |
| 200 | 200 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -736,7 +736,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks { | |||
| 736 | 736 | this.frame._addView(page); | |
| 737 | 737 | } | |
| 738 | 738 | ||
| 739 | - if (frame.isLoaded && !page.isLoaded) { | ||
| 739 | + if ((frame && frame.isLoaded) && (page && !page.isLoaded)) { | ||
| 740 | 740 | page.callLoaded(); | |
| 741 | 741 | } | |
| 742 | 742 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -357,7 +357,7 @@ export class CssState { | |||
| 357 | 357 | * As a result, at some point in time, the selectors matched have to be requerried from the style scope and applied to the view. | |
| 358 | 358 | */ | |
| 359 | 359 | public onChange(): void { | |
| 360 | - if (this.view.isLoaded) { | ||
| 360 | + if (this.view && this.view.isLoaded) { | ||
| 361 | 361 | this.unsubscribeFromDynamicUpdates(); | |
| 362 | 362 | this.updateMatch(); | |
| 363 | 363 | this.subscribeForDynamicUpdates(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments