Commit 66ba44e
committed
Validate hashtable key is not null in the debug service
The `scriptPath` (which amusingly could also be a script block) is used
as a key in a hashtable of breakpoints in the debug service. To avoid a
(that specifically showed up in the unit tests), we validate that a
non-empty (and non-null) value is provided.1 parent 7c41c5b commit 66ba44e
File tree
2 files changed
+10
-5
lines changed- src/PowerShellEditorServices/Services/DebugAdapter
- Debugging
2 files changed
+10
-5
lines changedLines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | 11 | | |
| 12 | + | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
| 991 | + | |
991 | 992 | | |
992 | 993 | | |
993 | 994 | | |
| |||
1008 | 1009 | | |
1009 | 1010 | | |
1010 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1011 | 1016 | | |
1012 | 1017 | | |
1013 | 1018 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments