From d01807405602a9352250c6c0f798549c63628aa6 Mon Sep 17 00:00:00 2001 From: Qihuan Date: Tue, 29 Apr 2025 20:41:30 -0700 Subject: [PATCH] fix:java.lang.IllegalArgumentException java.lang.IllegalArgumentException at com.liulishuo.okdownload.core.breakpoint.BlockInfo.(SourceFile:6) at com.liulishuo.okdownload.core.breakpoint.BlockInfoRow.toInfo(Unknown Source:9) at com.liulishuo.okdownload.core.breakpoint.BreakpointSQLiteHelper.loadToCache(SourceFile:19) at com.liulishuo.okdownload.core.breakpoint.BreakpointStoreOnSQLite.(SourceFile:6) --- .../liulishuo/okdownload/core/breakpoint/BlockInfoRow.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/okdownload-breakpoint-sqlite/src/main/java/com/liulishuo/okdownload/core/breakpoint/BlockInfoRow.java b/okdownload-breakpoint-sqlite/src/main/java/com/liulishuo/okdownload/core/breakpoint/BlockInfoRow.java index ffd1f7a1..f4745f01 100644 --- a/okdownload-breakpoint-sqlite/src/main/java/com/liulishuo/okdownload/core/breakpoint/BlockInfoRow.java +++ b/okdownload-breakpoint-sqlite/src/main/java/com/liulishuo/okdownload/core/breakpoint/BlockInfoRow.java @@ -32,9 +32,9 @@ public class BlockInfoRow { public BlockInfoRow(Cursor cursor) { this.breakpointId = cursor.getInt(cursor.getColumnIndex(HOST_ID)); - this.startOffset = cursor.getInt(cursor.getColumnIndex(START_OFFSET)); - this.contentLength = cursor.getInt(cursor.getColumnIndex(CONTENT_LENGTH)); - this.currentOffset = cursor.getInt(cursor.getColumnIndex(CURRENT_OFFSET)); + this.startOffset = cursor.getLong(cursor.getColumnIndex(START_OFFSET)); + this.contentLength = cursor.getLong(cursor.getColumnIndex(CONTENT_LENGTH)); + this.currentOffset = cursor.getLong(cursor.getColumnIndex(CURRENT_OFFSET)); } public int getBreakpointId() {