Tony CHEMIT pushed to branch develop-9.3.x at ultreiaio / ird-observe Commits: 9afdaf04 by Tony Chemit at 2024-09-19T12:15:14+02:00 Mettre à null le commentaire Batch.comment si celui ci n'est constitué que d'espaces - Closes #2923 - - - - - 1 changed file: - core/persistence/avdth/src/main/java/fr/ird/observe/persistence/avdth/data/localmarket/BatchReader.java Changes: ===================================== core/persistence/avdth/src/main/java/fr/ird/observe/persistence/avdth/data/localmarket/BatchReader.java ===================================== @@ -116,8 +116,13 @@ public class BatchReader extends DataReader<Batch> { String origin = resultSet.getString(8); entity.setOrigin(origin); String comment = resultSet.getString(9); - entity.setComment(comment); - + // See https://gitlab.com/ultreiaio/ird-observe/-/issues/2923 + if (comment != null) { + comment = comment.trim(); + if (!comment.isEmpty()) { + entity.setComment(comment); + } + } return entity; } } View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/9afdaf04c3e33e0a57a795e517... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/9afdaf04c3e33e0a57a795e517... You're receiving this email because of your account on gitlab.com.
participants (1)
-
Tony CHEMIT (@tchemit)