diff --git a/app/src/main/java/com/wbrawner/skerge/ScannerService.kt b/app/src/main/java/com/wbrawner/skerge/ScannerService.kt index 41ad21b..76b519d 100644 --- a/app/src/main/java/com/wbrawner/skerge/ScannerService.kt +++ b/app/src/main/java/com/wbrawner/skerge/ScannerService.kt @@ -81,7 +81,7 @@ class HpScannerService( } ) { onDownload { bytesSentTotal, contentLength -> - onProgress(bytesSentTotal, contentLength) + onProgress(bytesSentTotal, contentLength?: 0L) } } val responseBody: ByteArray = httpResponse.body()