[TRNSPRTPCE-172] Calculate spanloss crashes when OTS is not present Created: 16/Dec/19 Updated: 09/Nov/21 Resolved: 09/Nov/21 |
|
| Status: | Verified |
| Project: | transportpce |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Silicon, Phosphorus |
| Type: | Bug | Priority: | Medium |
| Reporter: | Jonas Mårtensson | Assignee: | Gilles Thouenon |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0 minutes | ||
| Time Spent: | 1 hour | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Functional compliance to OR |
| Description |
|
calculate-spanloss-base fails with NullPointerException for links where an OTS interface does not exist. When called with "src-type": "all", this means that the whole operation is aborted and spanloss for other links with OTS present is not calculated. It would be nice if instead there was a check if OTS is present (and output a log message if not), and then continue to calculate spanloss for other links. |
| Comments |
| Comment by Guillaume Lambert [ 21/Oct/21 ] |
|
The fix works but commit message description and code efficiency must be improved |