| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
From my own Crashlytics: `stderr: file:///app/vendor.js:1:860568: JS ERROR TypeError: null is not an object (evaluating 'a.viewControllers')` ``` file:///app/vendor.js:1:860489 var l,p=a.viewControllers.indexOfObject(n);if(p>0&&p<a.viewControllers.count&&(t=a.viewControllers[p-1]),t) ``` which corresponds to: https://github.com/NativeScript/NativeScript/blob/2fc1d8a8d4cf64e98eb98296e21564ac9b508f95/tns-core-modules/ui/action-bar/action-bar.ios.ts#L132 further up `navController` is checked for truthiness: https://github.com/NativeScript/NativeScript/blob/2fc1d8a8d4cf64e98eb98296e21564ac9b508f95/tns-core-modules/ui/action-bar/action-bar.ios.ts#L119 So applying same logic.
There was a problem hiding this comment.
Having no navigationController/navigationBar will cause more trouble in this method here and here where there are no guards.
Can you do the check for missing navigationController in the beginning of the method and just return if the is none (the same way we do in if there is no page or frame).
Sorry, something went wrong.
|
@vakrilov |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fix for #5743
From my own Crashlytics:
stderr: file:///app/vendor.js:1:860568: JS ERROR TypeError: null is not an object (evaluating 'a.viewControllers')
which corresponds to:
NativeScript/tns-core-modules/ui/action-bar/action-bar.ios.ts
Line 132 in 2fc1d8a
further up navController is checked for truthiness:
NativeScript/tns-core-modules/ui/action-bar/action-bar.ios.ts
Line 119 in 2fc1d8a
So applying same logic.
PR Checklist