You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by hi...@apache.org on 2022/03/30 01:00:09 UTC
[royale-asjs] 02/02: [TDJ] Min fix MainContent (Error for null object)
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 <mj...@iest.com>
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;