Skip to content

Commit

Permalink
fix: null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gimhanul committed Sep 14, 2023
1 parent 4eb5d79 commit 1b6e828
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.bamdoliro.maru.domain.form.domain.value.Parent;
import com.bamdoliro.maru.domain.form.domain.value.PhoneNumber;
import com.bamdoliro.maru.domain.form.domain.value.School;
import com.bamdoliro.maru.domain.form.domain.value.Score;
import com.bamdoliro.maru.domain.form.domain.value.Subject;
import com.bamdoliro.maru.domain.form.domain.value.SubjectList;
import com.bamdoliro.maru.domain.form.domain.value.Teacher;
Expand Down Expand Up @@ -48,7 +49,7 @@
public class FormFixture {

public static Form createForm(FormType type) {
return new Form(
Form form = new Form(
new Applicant(
"https://maru.com/photo.png",
"김밤돌",
Expand Down Expand Up @@ -109,6 +110,8 @@ public static Form createForm(FormType type) {
type,
UserFixture.createUser()
);
form.updateScore(new Score(1.0, 2, 3, 4));
return form;
}

public static Form createRandomForm(User user) {
Expand Down

0 comments on commit 1b6e828

Please sign in to comment.