Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Enquier committed May 29, 2024
1 parent 0ecd320 commit ecbf9dc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ public ProjectJson save(ProjectJson projectJson) {
proj.setOrganization(org.get());
proj.setProjectType(projectJson.getProjectType());
proj.setDocId(projectJson.getDocId());
proj.setDeleted(projectJson.isArchived());

if (projectJson.isArchived() != null) {
proj.setDeleted(projectJson.isArchived());
}

try {
projectDAO.save(proj);
Expand Down

0 comments on commit ecbf9dc

Please sign in to comment.