From 8d7072d3b750e54723e4684037e3b70ae40df3ca Mon Sep 17 00:00:00 2001 From: John Date: Wed, 5 Dec 2012 18:04:01 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20fix=20B2012-345=20=E2=80=93=20program=20w?= =?UTF-8?q?ould=20sometimes=20crash=20when=20doing=20a=20spell=20check.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/VlnSpellCheck.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/VlnSpellCheck.cs b/PROMS/Volian.Controls.Library/VlnSpellCheck.cs index 4b5496e8..6c2483a0 100644 --- a/PROMS/Volian.Controls.Library/VlnSpellCheck.cs +++ b/PROMS/Volian.Controls.Library/VlnSpellCheck.cs @@ -27,7 +27,7 @@ namespace Volian.Controls.Library while (MyEditItem.SpellCheckNext()) { ItemInfo next = MyEditItem.MyItemInfo.SearchNext; - if (next.IsSection) + if (next == null || next.IsSection) return; // spell check only current section MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next); }