diff options
author | Rob Mensching <rob@firegiant.com> | 2020-06-04 10:28:49 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-06-04 11:32:20 -0700 |
commit | 110bfc5b5bfee7c4592d9898406d2250f3c96ca3 (patch) | |
tree | 891ec77e048044553270115b714a817051b80b47 /src/WixToolset.Core/Compiler_Bundle.cs | |
parent | 90f501f6ad35a060fbb404f6a3eeaf1ac50e1a3c (diff) | |
download | wix-110bfc5b5bfee7c4592d9898406d2250f3c96ca3.tar.gz wix-110bfc5b5bfee7c4592d9898406d2250f3c96ca3.tar.bz2 wix-110bfc5b5bfee7c4592d9898406d2250f3c96ca3.zip |
Correctly pass extension context when Id attribute is null
Diffstat (limited to 'src/WixToolset.Core/Compiler_Bundle.cs')
-rw-r--r-- | src/WixToolset.Core/Compiler_Bundle.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WixToolset.Core/Compiler_Bundle.cs b/src/WixToolset.Core/Compiler_Bundle.cs index 9858ae17..31896a42 100644 --- a/src/WixToolset.Core/Compiler_Bundle.cs +++ b/src/WixToolset.Core/Compiler_Bundle.cs | |||
@@ -949,7 +949,7 @@ namespace WixToolset.Core | |||
949 | var id = this.ParsePayloadElementContent(node, parentType, parentId, previousType, previousId, true); | 949 | var id = this.ParsePayloadElementContent(node, parentType, parentId, previousType, previousId, true); |
950 | var context = new Dictionary<string, string> | 950 | var context = new Dictionary<string, string> |
951 | { | 951 | { |
952 | ["Id"] = id.Id | 952 | ["Id"] = id?.Id |
953 | }; | 953 | }; |
954 | 954 | ||
955 | foreach (var child in node.Elements()) | 955 | foreach (var child in node.Elements()) |
@@ -1044,7 +1044,7 @@ namespace WixToolset.Core | |||
1044 | // Now that the PayloadId is known, we can parse the extension attributes. | 1044 | // Now that the PayloadId is known, we can parse the extension attributes. |
1045 | var context = new Dictionary<string, string> | 1045 | var context = new Dictionary<string, string> |
1046 | { | 1046 | { |
1047 | ["Id"] = id.Id | 1047 | ["Id"] = id?.Id |
1048 | }; | 1048 | }; |
1049 | 1049 | ||
1050 | foreach (var extensionAttribute in extensionAttributes) | 1050 | foreach (var extensionAttribute in extensionAttributes) |
@@ -2070,7 +2070,7 @@ namespace WixToolset.Core | |||
2070 | } | 2070 | } |
2071 | else | 2071 | else |
2072 | { | 2072 | { |
2073 | var context = new Dictionary<string, string>() { { "Id", id.Id } }; | 2073 | var context = new Dictionary<string, string>() { { "Id", id?.Id } }; |
2074 | this.Core.ParseExtensionElement(node, child, context); | 2074 | this.Core.ParseExtensionElement(node, child, context); |
2075 | } | 2075 | } |
2076 | } | 2076 | } |