From 46374eaa642939b65dcc095a9c6caeaa49248cdf Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Thu, 3 Jan 2019 15:00:09 -0500 Subject: Prevent linker NullReferenceExceptions when missing SourceLineNumbers. --- src/WixToolset.Core/Link/ResolveReferencesCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/WixToolset.Core/Link/ResolveReferencesCommand.cs b/src/WixToolset.Core/Link/ResolveReferencesCommand.cs index 0188f9ac..07eabbd6 100644 --- a/src/WixToolset.Core/Link/ResolveReferencesCommand.cs +++ b/src/WixToolset.Core/Link/ResolveReferencesCommand.cs @@ -95,7 +95,7 @@ namespace WixToolset.Core.Link else // display errors for the duplicate symbols. { var accessibleSymbol = accessible[0]; - var referencingSourceLineNumber = wixSimpleReferenceRow.SourceLineNumbers.ToString(); + var referencingSourceLineNumber = wixSimpleReferenceRow.SourceLineNumbers?.ToString(); if (String.IsNullOrEmpty(referencingSourceLineNumber)) { -- cgit v1.2.3-55-g6feb