mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
fix: check for nulls in route switch descriptors
This commit is contained in:
parent
fa38e8a9a8
commit
f04f70495f
2 changed files with 3 additions and 3 deletions
|
|
@ -23,9 +23,9 @@
|
|||
public override string ToString()
|
||||
{
|
||||
if (SwitchingDevice is IRouting)
|
||||
return $"{SwitchingDevice?.Key} switches output {OutputPort.Key} to input {InputPort.Key}";
|
||||
return $"{SwitchingDevice?.Key} switches output {OutputPort?.Key} to input {InputPort?.Key}";
|
||||
else
|
||||
return $"{SwitchingDevice.Key} switches to input {InputPort.Key}";
|
||||
return $"{SwitchingDevice?.Key} switches to input {InputPort?.Key}";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue