diff --git a/SOURCE/Plugin/DeviceDescription.cs b/SOURCE/Plugin/DeviceDescription.cs index 84a0fc1..8c75e10 100644 --- a/SOURCE/Plugin/DeviceDescription.cs +++ b/SOURCE/Plugin/DeviceDescription.cs @@ -1873,7 +1873,7 @@ namespace Aml.Editor.Plugin IEnumerable rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root); // We expect the aml to only have one root part - if (rootParts.First() != null) + if (rootParts.Count() != 0 && rootParts.First() != null) { PackagePart part = rootParts.First(); @@ -4496,7 +4496,7 @@ namespace Aml.Editor.Plugin } else { - this.advancedModeToolStripMenuItem.Text = "Expert mode"; + this.advancedModeToolStripMenuItem.Text = "Advanced mode"; } // Show/hide elements