From 7f3b8884efc0f288f504d90a677afbd3187f4fbe Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 19 Nov 2024 10:52:34 +0100 Subject: [PATCH] chore: fix 'Dereference of a possibly null reference.' warning (#3055) --- src/Playwright.NUnit/WorkerAwareTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Playwright.NUnit/WorkerAwareTest.cs b/src/Playwright.NUnit/WorkerAwareTest.cs index 3620d487..0cee929b 100644 --- a/src/Playwright.NUnit/WorkerAwareTest.cs +++ b/src/Playwright.NUnit/WorkerAwareTest.cs @@ -37,7 +37,7 @@ namespace Microsoft.Playwright.NUnit; public class WorkerAwareTest { private static readonly ConcurrentStack _allWorkers = new(); - private Worker? _currentWorker = null!; + private Worker _currentWorker = null!; internal class Worker {