Skip to content

Commit a0fd3b3

Browse files
committed
Avoid NullReferenceException during teardown if initialization fails
1 parent ffaf45e commit a0fd3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tvl.VisualStudio.MouseFastScroll.IntegrationTests/AbstractIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected virtual void Dispose(bool disposing)
8080
{
8181
try
8282
{
83-
_visualStudioContext.Dispose();
83+
_visualStudioContext?.Dispose();
8484
}
8585
finally
8686
{

0 commit comments

Comments
 (0)