From 9281bc0475c65af61e4f037ac6d7265669744a2b Mon Sep 17 00:00:00 2001 From: Davoud Eshtehari Date: Tue, 2 Jun 2020 14:58:29 -0700 Subject: [PATCH] Fixed object null reference --- .../src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs index 0021538d70..4f69dba320 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs @@ -1649,9 +1649,9 @@ TimeoutTimer timeout // If it is read-only routing - we did not supply AppIntent=RO (it should be checked before) // If it is something else, not known yet (future server) - this client is not designed to support this. // In any case, server should not have sent the routing info. + SqlClientEventSource.Log.TraceEvent(" Routed to {0}", RoutingInfo.ServerName); throw SQL.ROR_UnexpectedRoutingInfo(this); } - SqlClientEventSource.Log.TraceEvent(" Routed to {0}", RoutingInfo.ServerName); break; // leave the while loop -- we've successfully connected } catch (SqlException sqlex)