From 345aa71de897d45f05c524b351270b0d5edf8b42 Mon Sep 17 00:00:00 2001 From: waterricecake Date: Sat, 12 Oct 2024 20:03:33 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20mafiaTarget=20null=EC=9D=BC=EC=8B=9C?= =?UTF-8?q?=20npe=20=EB=B0=A9=EC=A7=80=20=EB=A1=9C=EC=A7=81=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/mafia/mafiatogether/job/domain/JobTarget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mafia/mafiatogether/job/domain/JobTarget.java b/src/main/java/mafia/mafiatogether/job/domain/JobTarget.java index 6dbe28c..c17fdc5 100644 --- a/src/main/java/mafia/mafiatogether/job/domain/JobTarget.java +++ b/src/main/java/mafia/mafiatogether/job/domain/JobTarget.java @@ -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;