[TRNSPRTPCE-728] Change getter method to obtain an empty map instead of a null Created: 22/Feb/23 Updated: 26/Sep/23 Resolved: 02/Mar/23 |
|
| Status: | Verified |
| Project: | transportpce |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Chlorine, Argon |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Gilles Thouenon | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0 minutes | ||
| Time Spent: | 1 hour | ||
| Original Estimate: | Not Specified | ||
| Description |
|
In many pieces of TransportPCE code, maps are retrieved from the datastore with the getxx method which potentially returns null. It would be better to use the associated nonnullxx method which returns an empty map instead of null and simplify checks. |