mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-41143 (IOException instead of assert)
This commit is contained in:
+1
-1
@@ -442,7 +442,7 @@ public abstract class LocalFileSystemBase extends LocalFileSystem {
|
||||
final FileInputStream stream = new FileInputStream(convertToIOFileAndCheck(file));
|
||||
try {
|
||||
final int length = (int)file.getLength();
|
||||
assert length >= 0 : file;
|
||||
if (length < 0) throw new IOException("Invalid file length: " + length + ", " + file);
|
||||
return FileUtil.loadBytes(stream, length);
|
||||
}
|
||||
finally {
|
||||
|
||||
Reference in New Issue
Block a user