From 530d005f9019a2585e4dcf54794116d3d1723e30 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 9 Jun 2022 13:02:52 +0000 Subject: [PATCH] =?UTF-8?q?B2022-062:=20Proms=20crashes=20on=20Complete=20?= =?UTF-8?q?or=20Summary=20RO=20Report=20without=20=E2=80=98Sort=20by=20Set?= =?UTF-8?q?point=20ID=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/DisplayReports.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayReports.cs b/PROMS/Volian.Controls.Library/DisplayReports.cs index 3cbfc221..57afd758 100644 --- a/PROMS/Volian.Controls.Library/DisplayReports.cs +++ b/PROMS/Volian.Controls.Library/DisplayReports.cs @@ -475,7 +475,9 @@ namespace Volian.Controls.Library foreach (ROFSTLookup.rochild roc in chld.children) { // Don't get the children if we are doing a RO Summary or RO Complete report & children are the multiple return values - if (roc.children != null && (cbxROUsage.Checked || roc.children[0].ParentID != 0)) + // B2022-062: Proms crashes on Complete or Summary RO report without 'Sort by SetpointID'. With new ROfst logic, + // need to check for children length > 0 also. + if (roc.children != null && roc.children.Length > 0 && (cbxROUsage.Checked || roc.children[0].ParentID != 0)) rtnstr += GetROChildren(roc); else rtnstr += string.Format("{0},", roc.roid);