| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| // ensure view is protected against undefined access at each turn | ||
| if (view) { | ||
| view = view.parent as View; | ||
| if (view) { |
There was a problem hiding this comment.
Without this being guarding this while loop was very dangerous. Would often result in:
ERROR Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'view.viewController') getParentWithViewController@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:251:30 _showNativeModalView@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:257:68 showModal@file:///app/tns_modules/tns-core-modules/ui/core/view/view-common.js:195:38
Sorry, something went wrong.
#5881) * fix(ios-dialogs): unable to show dialog from modal view * tests(modal-navigation): add test that opens dialog inside modal view
|
Hey @NathanWalker - I've extended this PR in #5966 |
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 |
PR Checklist
What is the current behavior?
Apps break with the current throw without any effective way to handle. Additionally a while loop was being used without safe guards to prevent undefined access.
What is the new behavior?
With tracing on, developers can now properly debug their apps for various use cases without an untested (and most often not reproducible) ux flow/interaction hitting production resulting in this throw leaving the app unstable and unpredictable. Also proper safe guards have been added to prevent undefined access.