Skip to content

Commit

Permalink
Merge pull request #2052 from microsoft/dpaul-ElcDev
Browse files Browse the repository at this point in the history
RoutingTableLogPath could be null in some scenarios
  • Loading branch information
dpaulson45 authored Mar 29, 2024
2 parents 84165d7 + 61dff12 commit a36e90b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Get-TransportLoggingInformationPerServer {
if (($Version -eq 15 -and (-not ($MailboxOnly))) -or $Version -ge 16) {
$data = Get-FrontendTransportService -Identity $Server

if ($Version -ne 15) {
if ($Version -ne 15 -and (-not([string]::IsNullOrEmpty($data.RoutingTableLogPath)))) {
$routingTableLogPath = $data.RoutingTableLogPath.ToString()
}

Expand All @@ -59,7 +59,7 @@ function Get-TransportLoggingInformationPerServer {
#Mailbox Transport Layer
$data = Get-MailboxTransportService -Identity $Server

if ($Version -ne 15) {
if ($Version -ne 15 -and (-not([string]::IsNullOrEmpty($data.RoutingTableLogPath)))) {
$routingTableLogPath = $data.RoutingTableLogPath.ToString()
}

Expand Down

0 comments on commit a36e90b

Please sign in to comment.