diff options
-rw-r--r-- | src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs | 2 | ||||
-rw-r--r-- | src/WixToolset.Data/WixOutput.cs | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs b/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs index 2964cfb2..abc53b3a 100644 --- a/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs +++ b/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs | |||
@@ -20,6 +20,7 @@ namespace WixToolset.Data | |||
20 | namespace WixToolset.Data.Tuples | 20 | namespace WixToolset.Data.Tuples |
21 | { | 21 | { |
22 | using System; | 22 | using System; |
23 | using System.Diagnostics; | ||
23 | 24 | ||
24 | public enum WixSimpleReferenceTupleFields | 25 | public enum WixSimpleReferenceTupleFields |
25 | { | 26 | { |
@@ -27,6 +28,7 @@ namespace WixToolset.Data.Tuples | |||
27 | PrimaryKeys, | 28 | PrimaryKeys, |
28 | } | 29 | } |
29 | 30 | ||
31 | [DebuggerDisplay("{SymbolicName}")] | ||
30 | public class WixSimpleReferenceTuple : IntermediateTuple | 32 | public class WixSimpleReferenceTuple : IntermediateTuple |
31 | { | 33 | { |
32 | public WixSimpleReferenceTuple() : base(TupleDefinitions.WixSimpleReference, null, null) | 34 | public WixSimpleReferenceTuple() : base(TupleDefinitions.WixSimpleReference, null, null) |
diff --git a/src/WixToolset.Data/WixOutput.cs b/src/WixToolset.Data/WixOutput.cs index 1810862a..a3326b0b 100644 --- a/src/WixToolset.Data/WixOutput.cs +++ b/src/WixToolset.Data/WixOutput.cs | |||
@@ -206,6 +206,11 @@ namespace WixToolset.Data | |||
206 | { | 206 | { |
207 | var entry = this.archive.GetEntry(name); | 207 | var entry = this.archive.GetEntry(name); |
208 | 208 | ||
209 | if (entry == null) | ||
210 | { | ||
211 | throw new ArgumentOutOfRangeException(nameof(name)); | ||
212 | } | ||
213 | |||
209 | return entry.Open(); | 214 | return entry.Open(); |
210 | } | 215 | } |
211 | 216 | ||