From e59b4113dce201d9c6d95c8af2a92cadb1acef6b Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Fri, 6 May 2022 08:34:22 +0200 Subject: [PATCH] Small bug fix --- SOURCE/Plugin/DeviceDescription.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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