aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2019-01-03 15:00:09 -0500
committerBob Arnson <bob@firegiant.com>2019-01-03 15:04:09 -0500
commit46374eaa642939b65dcc095a9c6caeaa49248cdf (patch)
treece08bfcc2102aae5d76ef80f284b985b8e5fb455 /src
parent41622a07f82c57cf3d80393b0b6914f5ccb76e33 (diff)
downloadwix-46374eaa642939b65dcc095a9c6caeaa49248cdf.tar.gz
wix-46374eaa642939b65dcc095a9c6caeaa49248cdf.tar.bz2
wix-46374eaa642939b65dcc095a9c6caeaa49248cdf.zip
Prevent linker NullReferenceExceptions when missing SourceLineNumbers.
Diffstat (limited to 'src')
-rw-r--r--src/WixToolset.Core/Link/ResolveReferencesCommand.cs2
1 files changed, 1 insertions, 1 deletions
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
95 else // display errors for the duplicate symbols. 95 else // display errors for the duplicate symbols.
96 { 96 {
97 var accessibleSymbol = accessible[0]; 97 var accessibleSymbol = accessible[0];
98 var referencingSourceLineNumber = wixSimpleReferenceRow.SourceLineNumbers.ToString(); 98 var referencingSourceLineNumber = wixSimpleReferenceRow.SourceLineNumbers?.ToString();
99 99
100 if (String.IsNullOrEmpty(referencingSourceLineNumber)) 100 if (String.IsNullOrEmpty(referencingSourceLineNumber))
101 { 101 {