This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/flex-utilities.git
commit 1dc3b5d9ee446eb9036e5368c86e097d3bc7139a Author: Josh Tynjala <[email protected]> AuthorDate: Thu Sep 4 13:41:03 2025 -0700 installer: if the component list length is 0, abort installation At the very minimum, there should be at least one component: the Apache Flex SDK. It would be strange if we didn't have the AIR SDK and playerglobal too, but zero components is completely unacceptable. --- flex-installer/installer/src/InstallApacheFlex.mxml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flex-installer/installer/src/InstallApacheFlex.mxml b/flex-installer/installer/src/InstallApacheFlex.mxml index 74c52064..5c82453a 100644 --- a/flex-installer/installer/src/InstallApacheFlex.mxml +++ b/flex-installer/installer/src/InstallApacheFlex.mxml @@ -1439,6 +1439,12 @@ variables are not required because the locations of these pieces are known. var localeList:Array = resourceManager.localeChain; _installerComponentsDataProvider = new ArrayCollection(); compList = data.component.copy(); + if (compList.length() == 0) + { + log("Unable to load " + APACHE_FLEX_BIN_INSTALLER_URL); + abortInstallation("Unable to load " + APACHE_FLEX_BIN_INSTALLER_URL); + return; + } for each (var comp:XML in compList) { var vo:InstallerComponentVO = new InstallerComponentVO(getLocalizedString(comp, "label"),
