From a3f5be6931fd32acc6d8262b2d84ac8f5a3cfd68 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 10 Aug 2011 14:28:40 +0000 Subject: [PATCH] fixed null reference exception --- PROMS/Volian.Print.Library/vlnTab.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnTab.cs b/PROMS/Volian.Print.Library/vlnTab.cs index 22923938..5ca810e3 100644 --- a/PROMS/Volian.Print.Library/vlnTab.cs +++ b/PROMS/Volian.Print.Library/vlnTab.cs @@ -81,7 +81,7 @@ namespace Volian.Print.Library } Rtf = GetRtf(origTab, vFont); Rtf = Rtf.Replace("\u25CF", @"\f1\u9679?\f0"); // bullet 25CF - if (!myparent.MyItemInfo.FormatStepData.AlwaysTab && myparent.MyItemInfo.MyPrevious != null) + if (myparent.MyItemInfo.FormatStepData != null && !myparent.MyItemInfo.FormatStepData.AlwaysTab && myparent.MyItemInfo.MyPrevious != null) { Rtf = Rtf.Replace("Caution:", " "); Rtf = Rtf.Replace("Note:", " ");