-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#79 Fix various NPEs on update an achieved skill as completed
Various problems: 1. There is a new DTO created which have both the team and skill as null by default. Trying to set the ID on them results in NPE. 2. New introduced field sklillStatus is null by default, but must not be null The first problem is solved by resolving the team andskill according to their ids. If either of them is not present (does not exist) the method exits. An empty DTO is returned to prevent NPE by callers. The second problem is solved by assigning Skillstatus#ACHIEVED. New issue[1] created bc we must maintain this new field consistent in the whole code base. 1: #85 Signed-off-by: Sven Strittmatter <[email protected]>
- Loading branch information
1 parent
1f6b99d
commit 3f70e9a
Showing
1 changed file
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters