Skip to content

Commit

Permalink
fix(database): Fix NPE in ProjectDao (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt authored Jul 18, 2023
1 parent 6e588ea commit fde7a40
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
import io.github.martinwitt.laughing_train.domain.entity.GitHubCommit;
import io.quarkus.mongodb.panache.PanacheMongoEntity;
import io.quarkus.mongodb.panache.common.MongoEntity;
import java.util.ArrayList;
import java.util.List;

@MongoEntity(database = "Laughing-Train", collection = "Project")
@SuppressWarnings("NullAway")
public class ProjectDao extends PanacheMongoEntity {
private String projectName;
private String projectUrl;
private List<String> commitHashes;
private List<GitHubCommit> commits;
private List<String> commitHashes = new ArrayList<>();
private List<GitHubCommit> commits = new ArrayList<>();

public ProjectDao() {

// for JPA
}

Expand Down

0 comments on commit fde7a40

Please sign in to comment.