mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 20:59:54 +01:00
Check whether File#listFiles() returns null.
The docs say this can happen for a directory if there's an I/O error.
This commit is contained in:
@@ -20,7 +20,7 @@ public class IoUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static void copy(InputStream in, OutputStream out)
|
||||
public static void copyAndClose(InputStream in, OutputStream out)
|
||||
throws IOException {
|
||||
byte[] buf = new byte[4096];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user