Skip to content

Commit

Permalink
add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed Oct 20, 2023
1 parent 84e9fce commit b4418ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Examples/Razor/Razor.Playwright/GlobalSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ private static void InstallPlayWright()
[OneTimeTearDown]
public async Task RunAfterAnyTests()
{
await _serviceProvider.DisposeAsync();
if(_serviceProvider != null)
{
await _serviceProvider.DisposeAsync();
}
}
}

0 comments on commit b4418ec

Please sign in to comment.