Add port check before port.description check.
Cannot check port.description if port does not exist.
drosca | |
ngraham |
Plasma |
Add port check before port.description check.
Cannot check port.description if port does not exist.
Before:
If there is a device with ports, and an other one without ports, will fail to display the name a device, or crash?
After:
Name should be displayed correctly in every case.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Thanks!
Are you planning code changes? Or was that "Plan changes" just about updating the description and test plan?
Added port.description too.
There is port.description.length now, better safe than sorry.
Maybe only show the description when there's more than one input or output device? I thought the lack of a description for the single-device use case was a feature! :) It looks so nice and clean:
II don't see the problem, in this picture. I don't even know if it is before of after this patch.
It looks fine, both devices show the port.
This should not change anything. It is a bug fix.
There are 2 descriptions, Device description and Port description. We prefer to show the Port description.