Tony CHEMIT pushed to branch develop-9.3.x at ultreiaio / ird-observe

Commits:

1 changed file:

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> {
    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
     }