From 745c1e79f8f4a22f0e8287977593e93ad3cf9b74 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Tue, 20 Aug 2024 15:44:36 +0200 Subject: [PATCH] Try to fix crash from #8747 - thx JDTR75/ cvrle77 :) --- src/ui/Forms/Main.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index 22e2a2ded..00eccbb75 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -31482,12 +31482,12 @@ namespace Nikse.SubtitleEdit.Forms return; } - string newText = p.Text.TrimEnd(); - string oldText = _listViewTextUndoLast.TrimEnd(); - if (oldText == null) + var newText = p.Text.TrimEnd(); + if (_listViewTextUndoLast == null) { return; } + var oldText = _listViewTextUndoLast.TrimEnd(); if (_listViewTextUndoLast != newText) {