Skip to content

Commit

Permalink
fix: java null pointer exception in threadChargementService
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Nov 16, 2024
1 parent 48199d0 commit 98007dc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ private void chargementFichierAvecContainer() throws ArcException {
targetLoader.charger();

} finally {
if (filesInputStreamLoad!=null) {
this.filesInputStreamLoad.closeAll();
if (filesInputStreamLoad==null) {
throw new ArcException(ArcExceptionMessage.FILE_READ_FAILED, fileChargement.getAbsolutePath());
}
this.filesInputStreamLoad.closeAll();
}
} catch (IOException e) {
throw new ArcException(e, ArcExceptionMessage.FILE_CLOSE_FAILED, fileChargement.getAbsolutePath());
Expand Down

0 comments on commit 98007dc

Please sign in to comment.