Skip to content

Commit 57275ea

Browse files
Fixed object null reference
1 parent 7dedda5 commit 57275ea

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
@@ -1651,7 +1651,7 @@ TimeoutTimer timeout
16511651
// In any case, server should not have sent the routing info.
16521652
throw SQL.ROR_UnexpectedRoutingInfo(this);
16531653
}
1654-
SqlClientEventSource.Log.TraceEvent("<sc.SqlInternalConnectionTds.LoginWithFailover> Routed to {0}", RoutingInfo.ServerName);
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)