Skip to content

Commit dd1af5e

Browse files
committed
fix last hypothetical null reference exception in selenium manager
1 parent bbf234d commit dd1af5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/src/webdriver/SeleniumManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private static SeleniumManagerResponse.ResultResponse RunCommand(string fileName
196196
{
197197
foreach (var entry in jsonResponse.Logs)
198198
{
199-
switch (entry.Level)
199+
switch (entry?.Level)
200200
{
201201
case "WARN":
202202
if (_logger.IsEnabled(LogEventLevel.Warn))
@@ -226,7 +226,7 @@ private static SeleniumManagerResponse.ResultResponse RunCommand(string fileName
226226

227227
internal class SeleniumManagerResponse
228228
{
229-
public IReadOnlyList<LogEntryResponse>? Logs { get; set; }
229+
public IReadOnlyList<LogEntryResponse?>? Logs { get; set; }
230230

231231
public ResultResponse? Result { get; set; }
232232

0 commit comments

Comments
 (0)