mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix issue in attribute helper
This commit is contained in:
@@ -37,7 +37,7 @@ namespace SabreTools.Core.Tools
|
|||||||
|
|
||||||
// Try to get the relevant attribute
|
// Try to get the relevant attribute
|
||||||
var attributes = enumValueMemberInfo.GetCustomAttributes(typeof(MappingAttribute), true);
|
var attributes = enumValueMemberInfo.GetCustomAttributes(typeof(MappingAttribute), true);
|
||||||
if (attributes == null)
|
if (attributes == null || attributes.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
// Return the first attribute, if possible
|
// Return the first attribute, if possible
|
||||||
|
|||||||
Reference in New Issue
Block a user