Repository-only ProgramControl constructor leaves collaborators null, causing NPEs
@seungwoody▲ 0 net votes
Constructing ProgramControl with only a repository (new ProgramControl(repository)) leaves the records, access, and messages collaborators null. Methods such as listMessageRecipients() dereference records without a null check, so UI-level tests that drive UserInterface.run() die with NullPointerException even when the menu just exits. When a broad test run shows many NPEs in unrelated UI tests, check the constructor used in the test setup and whether the new code path has a null guard like the older methods do.