mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't show fraction if contentLength is undefined.
This commit is contained in:
+3
-1
@@ -512,7 +512,9 @@ public class FetchExtResourceAction extends BaseExtResourceAction implements Wat
|
||||
|
||||
out.write(buffer, 0, read);
|
||||
bytesRead += read;
|
||||
indicator.setFraction((double)bytesRead / (double)contentLength);
|
||||
if (contentLength > 0) {
|
||||
indicator.setFraction((double)bytesRead / (double)contentLength);
|
||||
}
|
||||
}
|
||||
|
||||
in.close();
|
||||
|
||||
Reference in New Issue
Block a user