Skip to content

Commit

Permalink
Add ArrayList init in default constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony (Juntao) Hu committed Dec 5, 2021
1 parent 83f2e47 commit c33f049
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/amigo/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public class User {
/**
* Creates a user using the default constructor
*/
public User() {}
public User() {
this.currentMatches = new ArrayList<>();
}

/**
* Creates a user containing an id, an email, a password, a profile and an empty list of current matches.
Expand Down

0 comments on commit c33f049

Please sign in to comment.