mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-12 19:24:53 +00:00
fix: check for nulls in route switch descriptors
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user