From 19971f3301a1dd2c6e516342808c4e25a4552774 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 19 Jan 2017 21:34:06 +0000 Subject: [PATCH] B2017-009 - When you printed from the V Button (Non-PC PC) Procedures the code would crash. This has been fixed. --- PROMS/VEPROMS User Interface/DlgPrintProcedure.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs index a0da7450..f7df0664 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs @@ -824,7 +824,9 @@ namespace VEPROMS else { // B2016-249 Output Procedure to folder associated with Parent Child - _MultiunitPdfLocation = cbxMultiunitPdfLocation.SelectedItem.ToString(); + // B2017-009 If the selected item is null don't add a folder + if(cbxMultiunitPdfLocation.SelectedItem != null) + _MultiunitPdfLocation = cbxMultiunitPdfLocation.SelectedItem.ToString(); this.Cursor = Cursors.WaitCursor; CreatePDF(); this.Cursor = Cursors.Default;