From ec43db93349cb418906ef4c40359d824726baa07 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 22 Nov 2024 01:49:21 -0500 Subject: [PATCH] Fix issue in attribute helper --- SabreTools.Core/Tools/AttributeHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SabreTools.Core/Tools/AttributeHelper.cs b/SabreTools.Core/Tools/AttributeHelper.cs index f0af3984..e66dfe2f 100644 --- a/SabreTools.Core/Tools/AttributeHelper.cs +++ b/SabreTools.Core/Tools/AttributeHelper.cs @@ -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