diff --git a/Runtime/Scripts/System/ProjectTreeFactory.cs b/Runtime/Scripts/System/ProjectTreeFactory.cs index c82a217..e88bd36 100644 --- a/Runtime/Scripts/System/ProjectTreeFactory.cs +++ b/Runtime/Scripts/System/ProjectTreeFactory.cs @@ -95,6 +95,11 @@ private static XElement CreateDevice(Link link) foreach (var attribute in link.Attributes) { + if (string.IsNullOrEmpty(attribute.Key)) + { + Logging.Logger.LogWarning($"Device: {link.Path} {link.Type}: Attribute Key is empty"); + continue; + } device.Add(new XElement(attribute.Key, attribute.Value)); }