From f69fd75759e2b8e5c06dd2b948b5c9360d80d1b2 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 24 Aug 2021 14:01:40 +0000 Subject: [PATCH] B2021-093 null reference check when looking for child RO values --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index da116eb5..05312cb6 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -304,13 +304,15 @@ namespace VEPROMS.CSLA.Library public string GetParentChildROValue(rochild roc) { string roval = roc.value; + // B2021-093 Don't look for child RO values if "roval" is null + if (roval == null) return null; // get the child (slave) information and set the rtnchld.value to the corresponding RO Value int selChldIdx = MyDocVersionInfo.DocVersionConfig.SelectedSlave; string childName = MyDocVersionInfo.DocVersionConfig.Unit_Name; string aplString = roval; string ChldValue = ""; // if the RO Value contains Parent/Child values, parse out default value and the child (slave or unit specific) value - while (roval.Contains("", startCVIdx);