If no configuration exists for a conference, then prefDays becomes null in CourtScheduleIO#processRequestConstraints. This null value is then sent into CourtScheduleIO#parseDateConstraints as the request parameter which then throws an exception when String#contains is called on the null value.
As I see it, this situation can be handled in one of two ways:
A default value for a preferred day can be set.
No value can be set for a preferred day (no preferred days).
If no configuration exists for a conference, then
prefDays
becomesnull
inCourtScheduleIO#processRequestConstraints
. Thisnull
value is then sent intoCourtScheduleIO#parseDateConstraints
as therequest
parameter which then throws an exception whenString#contains
is called on the null value.As I see it, this situation can be handled in one of two ways: