mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Handle uncommon case of no find elements
This commit is contained in:
@@ -1112,6 +1112,10 @@ namespace SabreTools.Serialization.Readers
|
||||
obj.Default = reader.GetAttribute("default").AsYesNo();
|
||||
obj.Auto = reader.GetAttribute("auto");
|
||||
|
||||
// Handle uncommon case of no find elements
|
||||
if (reader.IsEmptyElement)
|
||||
return obj;
|
||||
|
||||
List<Find> finds = [];
|
||||
|
||||
reader.Read();
|
||||
|
||||
Reference in New Issue
Block a user