This is an automated email from the ASF dual-hosted git repository. hiedra pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 63c2080439f422129b5d93660ab22b447575e931 Author: mjesteve <[email protected]> AuthorDate: Wed Mar 30 02:58:51 2022 +0200 [TDJ] Min fix MainContent (Error for null object) --- examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml index 21c7d62..e2dc5ff 100644 --- a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml +++ b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml @@ -144,6 +144,8 @@ limitations under the License. { currentNavOption = (event.target as Navigation).selectedItem as NavigationLinkVO; currentNavOption = currentNavOption.selectedChild; + if( !currentNavOption ) + return; router.routeState.title = currentNavOption.label; router.routeState.path = currentNavOption.hash;
