Skip to content

Commit

Permalink
fix: assign a random application ID if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
naouf4l-grav committed Dec 19, 2024
1 parent 89cd901 commit 72b9eb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public ApplicationEntity create(final ExecutionContext executionContext, NewAppl
}

Application application = applicationConverter.toApplication(newApplicationEntity);
if (newApplicationEntity.getId() != null) {
if (newApplicationEntity.getId() != null && !newApplicationEntity.getId().isEmpty()) {
application.setId(newApplicationEntity.getId());
} else {
application.setId(UuidString.generateRandom());
Expand Down

0 comments on commit 72b9eb6

Please sign in to comment.