diff options
author | Bob Arnson <bob@firegiant.com> | 2019-10-24 16:59:15 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2019-10-24 17:04:41 -0400 |
commit | 87580cbe111a8df836231a0192dee674cf482f08 (patch) | |
tree | 7a399afc8ba5df69b17added6dfa53a4af34f199 /src | |
parent | f76653eab39c2df233d1d884542241c9aea4c5ff (diff) | |
download | wix-87580cbe111a8df836231a0192dee674cf482f08.tar.gz wix-87580cbe111a8df836231a0192dee674cf482f08.tar.bz2 wix-87580cbe111a8df836231a0192dee674cf482f08.zip |
Don't crash on empty (but valid) source paths.
Diffstat (limited to 'src')
-rw-r--r-- | src/WixToolset.Core/Librarian.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WixToolset.Core/Librarian.cs b/src/WixToolset.Core/Librarian.cs index 81d3a0ed..3c1810ac 100644 --- a/src/WixToolset.Core/Librarian.cs +++ b/src/WixToolset.Core/Librarian.cs | |||
@@ -95,7 +95,7 @@ namespace WixToolset.Core | |||
95 | { | 95 | { |
96 | var pathField = field.AsPath(); | 96 | var pathField = field.AsPath(); |
97 | 97 | ||
98 | if (pathField != null) | 98 | if (pathField != null && !String.IsNullOrEmpty(pathField.Path)) |
99 | { | 99 | { |
100 | var resolution = variableResolver.ResolveVariables(tuple.SourceLineNumbers, pathField.Path, false); | 100 | var resolution = variableResolver.ResolveVariables(tuple.SourceLineNumbers, pathField.Path, false); |
101 | 101 | ||