diff --git a/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs index 5e1457e70f..5fcfe30907 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs @@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting } else { - _publishedApplication.Dispose(); + _publishedApplication?.Dispose(); } } }