Fix issue in attribute helper

This commit is contained in:
Matt Nadareski
2024-11-22 01:49:21 -05:00
parent 0f39c32abf
commit ec43db9334

View File

@@ -37,7 +37,7 @@ namespace SabreTools.Core.Tools
// Try to get the relevant attribute
var attributes = enumValueMemberInfo.GetCustomAttributes(typeof(MappingAttribute), true);
if (attributes == null)
if (attributes == null || attributes.Length == 0)
return null;
// Return the first attribute, if possible