Skip to content

Commit

Permalink
Merge branch 'pr-2052'
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Jan 18, 2024
2 parents c5fa968 + 520e244 commit fb8b330
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.FileChannel;
import java.nio.file.NoSuchFileException;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.Base64;
Expand Down Expand Up @@ -87,6 +88,9 @@ private static synchronized void reOpenChannel() {
}
try {
fileChannel = FileChannel.open(thumbsfile.toPath(), StandardOpenOption.READ, StandardOpenOption.WRITE);
} catch (NoSuchFileException e) {
// fix for https://github.com/sepinf-inc/IPED/issues/2051
throw new RuntimeException(e);
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit fb8b330

Please sign in to comment.