Skip to content
Snippets Groups Projects
Commit 8463ad57 authored by Richard Cordovano's avatar Richard Cordovano
Browse files

Merge remote-tracking branch 'upstream/release-4.6.6' into develop

parents 47d0b2a0 74b48a70
Branches
Tags
No related merge requests found
...@@ -129,7 +129,9 @@ public int read(byte[] buf, long offset, long len) throws TskCoreException { ...@@ -129,7 +129,9 @@ public int read(byte[] buf, long offset, long len) throws TskCoreException {
int totalBytesRead = 0; int totalBytesRead = 0;
ByteBuffer data = ByteBuffer.wrap(buf); ByteBuffer data = ByteBuffer.wrap(buf);
try { try {
fileChannel = FileChannel.open(pathAsPath, READ); if (fileChannel == null) {
fileChannel = FileChannel.open(pathAsPath, READ);
}
fileChannel.position(offset); fileChannel.position(offset);
int bytesRead = 0; int bytesRead = 0;
do { do {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment