Skip to content

Commit

Permalink
Fix nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jul 3, 2024
1 parent b6dc483 commit 06a3003
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class TimelineBreakDisplay : TimelinePart<TimelineBreak>
private Timeline timeline { get; set; } = null!;

[Resolved]
private IEditorChangeHandler editorChangeHandler { get; set; } = null!;
private IEditorChangeHandler? editorChangeHandler { get; set; }

/// <summary>
/// The visible time/position range of the timeline.
Expand Down Expand Up @@ -78,9 +78,9 @@ private void recreateBreaks()
{
OnDeleted = b =>
{
editorChangeHandler.BeginChange();
editorChangeHandler?.BeginChange();
breaks.Remove(b);
editorChangeHandler.EndChange();
editorChangeHandler?.EndChange();
},
});
}
Expand Down

0 comments on commit 06a3003

Please sign in to comment.