From 45aa4b1b11a91b6b63566698c306f2b7c92d8f7a Mon Sep 17 00:00:00 2001 From: Vinay Arora Date: Tue, 11 Jul 2023 21:33:27 +0530 Subject: [PATCH] Fixed Null Reference Exception --- MARC.Everest/DataTypes/ON.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MARC.Everest/DataTypes/ON.cs b/MARC.Everest/DataTypes/ON.cs index 75d94c5b..67e001a0 100644 --- a/MARC.Everest/DataTypes/ON.cs +++ b/MARC.Everest/DataTypes/ON.cs @@ -171,7 +171,7 @@ internal static ON Parse(EN name) retVal.ControlActRoot = name.ControlActRoot; retVal.Flavor = name.Flavor; retVal.NullFlavor = name.NullFlavor != null ? name.NullFlavor.Clone() as CS : null; - retVal.UpdateMode = name.NullFlavor != null ? name.UpdateMode.Clone() as CS : null; + retVal.UpdateMode = name.UpdateMode != null ? name.UpdateMode.Clone() as CS : null; retVal.Use = name.Use != null ? new SET>(name.Use) : null; retVal.ValidTimeHigh = name.ValidTimeHigh; retVal.ValidTimeLow = name.ValidTimeLow;