Skip to content

Commit

Permalink
fix: nb char extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
lmanelphe committed Jan 22, 2024
1 parent dc8c413 commit 241a074
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ private String requeteFichierBrutalement(String idSource, BufferedReader br, int
int idLigne = nbBoucle * LIMIT_CHARGEMENT_BRUTAL_NB_LIGNE;
String line;
try {
line = br.readLine().substring(0, LIMIT_CHARGEMENT_BRUTAL_NB_CHAR);
line = br.readLine();
line = line.substring(0, Math.min(line.length(), LIMIT_CHARGEMENT_BRUTAL_NB_CHAR));
} catch (IOException e) {
throw new ArcException(e, ArcExceptionMessage.FILE_READ_FAILED, idSource);
}
Expand Down

0 comments on commit 241a074

Please sign in to comment.