Skip to content

Commit

Permalink
fix: title can not be empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Mar 14, 2024
1 parent 9cfb77d commit 92ab3db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public class JsonFileBody {
private Boolean pub;

public boolean postDataOk() {
return (title != null && blob != null && associatedAppId != null && pub != null);
return (title != null && !title.trim().isEmpty() && blob != null && associatedAppId != null && pub != null);
}

public boolean putDataOk() {
return (title != null || description != null || blob != null || pub != null);
return ((title != null && !title.trim().isEmpty()) || description != null || blob != null || pub != null);
}

}

0 comments on commit 92ab3db

Please sign in to comment.