Skip to content

Commit

Permalink
Fix issue where records with invalid IDs would cause a crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
NullCascade committed Jun 30, 2023
1 parent 50c771a commit 0cb061f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TES3Merge/Commands/MergeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ internal static void Merge(Settings settings)
continue;
}

var editorId = record.GetEditorId().Replace("\0", string.Empty);
var editorId = record.GetEditorId()?.Replace("\0", string.Empty);
if (string.IsNullOrEmpty(editorId))
{
continue;
Expand Down
2 changes: 1 addition & 1 deletion TES3Tool

0 comments on commit 0cb061f

Please sign in to comment.