From 87aeb23ece33a56f42f3abd7eddce45a51d6d15c Mon Sep 17 00:00:00 2001 From: qinyanggl Date: Sun, 29 Apr 2018 13:47:05 +0100 Subject: [PATCH] Fix issue #150 "Crash when change... Fix issue #150 "Crash when change text without selecting any entry". UpdateWebBrowser() will now return immdieately if there is no entry being selected. --- Journaley/Forms/MainForm.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Journaley/Forms/MainForm.cs b/Journaley/Forms/MainForm.cs index a184b7e..fe6ab91 100644 --- a/Journaley/Forms/MainForm.cs +++ b/Journaley/Forms/MainForm.cs @@ -639,6 +639,11 @@ private void OnGetMinMaxInfo(ref Message m) /// private void UpdateWebBrowser() { + if (this.selectedEntry == null) + { + return; + } + string initialString = this.SelectedEntry.EntryText; // Fix for backtick fenced code blocks is to replace it into tilde fenced.