From c7391b682146a8f816f4139b8b0077ef40efd7a8 Mon Sep 17 00:00:00 2001 From: EX3 Date: Sat, 5 Oct 2024 21:23:31 +0900 Subject: [PATCH] Fixed crashing when loading project --- Mirivoice/Views/SingleLineEditorView.axaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mirivoice/Views/SingleLineEditorView.axaml.cs b/Mirivoice/Views/SingleLineEditorView.axaml.cs index 41e7d79..30c3899 100644 --- a/Mirivoice/Views/SingleLineEditorView.axaml.cs +++ b/Mirivoice/Views/SingleLineEditorView.axaml.cs @@ -29,7 +29,11 @@ public SingleLineEditorView(LineBoxView l, bool FirstUpdate = true) private async void LineTextChanging(object sender, TextChangingEventArgs e) { - + if (l is null) + { + Log.Warning("LineBoxView is null."); + return; + } l.DeActivatePhonemizer = false; if (FirstUpdate) {