From e8ab3730086760ff28e282c6bf758f6982a640c1 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 27 Feb 2015 15:13:59 +0000 Subject: [PATCH] Word Section Replace ROs Results in an error if there are not any ROs --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index eca4444d..0caed113 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -798,7 +798,7 @@ namespace VEPROMS.CSLA.Library // force Print of MS Word Attachment to Final without revisions and comments myDoc.ActiveWindow.View.ShowRevisionsAndComments = false; myDoc.ActiveWindow.View.RevisionsView = LBWdRevisionsView.wdRevisionsViewFinal; - int lastStart = sel.Start; + int lastStart = sel == null ? 0 : sel.Start; while (sel != null) { if (statusChange != null) statusChange(VolianStatusType.Update, sel.Start, string.Format("{0} ROs Refreshed", ++roCount));