App source code #23

Merged
H4CK3R-01 merged 23 commits from app-source-code into main 2022-05-05 16:32:38 +00:00
Showing only changes of commit f6f7fd7d05 - Show all commits

View File

@ -80,7 +80,7 @@ namespace Aml.Editor.Plugin
IEnumerable<PackagePart> 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();