Skip to content

Commit

Permalink
fix : mafiaTarget null일시 npe 방지 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
waterricecake committed Oct 12, 2024
1 parent 37c394f commit 345aa71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public JobTarget() {
public String findTarget() {
final String mafiaTarget = findJobTargetBy(JobType.MAFIA);
final String doctorTarget = findJobTargetBy(JobType.DOCTOR);
if (mafiaTarget.equals(doctorTarget)) {
if (mafiaTarget == null || mafiaTarget.equals(doctorTarget)) {
return null;
}
return mafiaTarget;
Expand Down

0 comments on commit 345aa71

Please sign in to comment.