Skip to content

Commit cd38e39

Browse files
Fixed object null reference when failoverpartner is set (#588)
1 parent 7dedda5 commit cd38e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,9 +1649,9 @@ TimeoutTimer timeout
16491649
// If it is read-only routing - we did not supply AppIntent=RO (it should be checked before)
16501650
// If it is something else, not known yet (future server) - this client is not designed to support this.
16511651
// In any case, server should not have sent the routing info.
1652+
SqlClientEventSource.Log.TraceEvent("<sc.SqlInternalConnectionTds.LoginWithFailover> Routed to {0}", RoutingInfo.ServerName);
16521653
throw SQL.ROR_UnexpectedRoutingInfo(this);
16531654
}
1654-
SqlClientEventSource.Log.TraceEvent("<sc.SqlInternalConnectionTds.LoginWithFailover> Routed to {0}", RoutingInfo.ServerName);
16551655
break; // leave the while loop -- we've successfully connected
16561656
}
16571657
catch (SqlException sqlex)

0 commit comments

Comments
 (0)