Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
e7cc9e17
by Tony Chemit at 2024-09-19T12:15:22+02:00
1 changed file:
Changes:
| ... | ... | @@ -116,8 +116,13 @@ public class BatchReader extends DataReader<Batch> { |
| 116 | 116 | String origin = resultSet.getString(8);
|
| 117 | 117 | entity.setOrigin(origin);
|
| 118 | 118 | String comment = resultSet.getString(9);
|
| 119 | - entity.setComment(comment);
|
|
| 120 | - |
|
| 119 | + // See https://gitlab.com/ultreiaio/ird-observe/-/issues/2923
|
|
| 120 | + if (comment != null) {
|
|
| 121 | + comment = comment.trim();
|
|
| 122 | + if (!comment.isEmpty()) {
|
|
| 123 | + entity.setComment(comment);
|
|
| 124 | + }
|
|
| 125 | + }
|
|
| 121 | 126 | return entity;
|
| 122 | 127 | }
|
| 123 | 128 | } |