Make sure @link is available before accessing it
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/a371f822 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/a371f822 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/a371f822 Branch: refs/heads/master Commit: a371f822f61fd68f05771cc7d43d3df7c9331ccc Parents: 5af4889 Author: OmPrakash Muppirala <bigosma...@gmail.com> Authored: Mon Nov 10 12:29:40 2014 -0800 Committer: OmPrakash Muppirala <bigosma...@gmail.com> Committed: Mon Nov 10 12:30:05 2014 -0800 ---------------------------------------------------------------------- TourDeFlex/TourDeFlex3/src/explorer.mxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a371f822/TourDeFlex/TourDeFlex3/src/explorer.mxml ---------------------------------------------------------------------- diff --git a/TourDeFlex/TourDeFlex3/src/explorer.mxml b/TourDeFlex/TourDeFlex3/src/explorer.mxml index 03808a6..fed755a 100755 --- a/TourDeFlex/TourDeFlex3/src/explorer.mxml +++ b/TourDeFlex/TourDeFlex3/src/explorer.mxml @@ -80,7 +80,7 @@ private function treeChanged(event:Event):void { var nodeApp:String = compLibTree.selectedItem.@app; - var link:String = compLibTree.selectedItem.@link; + var link:String = compLibTree.selectedItem.hasOwnProperty("@link") ? compLibTree.selectedItem.@link : ""; var thirdParty:Boolean = compLibTree.selectedItem.hasOwnProperty("@thirdParty") && compLibTree.selectedItem.@thirdParty == "true";