From 5c0d83139a7109daae9cac0d29ca622d45c6418f Mon Sep 17 00:00:00 2001 From: AJ Date: Tue, 17 Mar 2020 15:35:42 -0400 Subject: [PATCH] Fixed crash when component is null within GetItem --- ExportDXF/ExportDXF.csproj | 2 +- ExportDXF/ItemExtractor.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ExportDXF/ExportDXF.csproj b/ExportDXF/ExportDXF.csproj index 0d9c55f..43eeb21 100644 --- a/ExportDXF/ExportDXF.csproj +++ b/ExportDXF/ExportDXF.csproj @@ -25,7 +25,7 @@ true Rogers Engineering 4 - 1.1.0.%2a + 1.1.1.%2a false true true diff --git a/ExportDXF/ItemExtractor.cs b/ExportDXF/ItemExtractor.cs index a11760f..14385cc 100644 --- a/ExportDXF/ItemExtractor.cs +++ b/ExportDXF/ItemExtractor.cs @@ -81,7 +81,11 @@ namespace ExportDXF } item.Component = GetComponent(rowIndex); - item.Configuration = item.Component.ReferencedConfiguration; + + if (item.Component != null) + { + item.Configuration = item.Component.ReferencedConfiguration; + } return item; }