From 4aea9f0a058e6abb7cea39f42880db54ec8cbf2f Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Sun, 25 Feb 2018 10:56:44 -0500 Subject: [PATCH] Fixing null ref --- ICD.Common.Utils/Xml/IcdXmlReader.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ICD.Common.Utils/Xml/IcdXmlReader.cs b/ICD.Common.Utils/Xml/IcdXmlReader.cs index 109c9db..4d85ad5 100644 --- a/ICD.Common.Utils/Xml/IcdXmlReader.cs +++ b/ICD.Common.Utils/Xml/IcdXmlReader.cs @@ -114,6 +114,9 @@ namespace ICD.Common.Utils.Xml public void Dispose() { + if (m_Reader == null) + return; + try { #if SIMPLSHARP