Skip to content

Commit

Permalink
fix: 分发进度空指针异常 TencentBlueKing#2330
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan authored Jul 4, 2024
1 parent 263948d commit eaf2782
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ProgressListener {
return
}
val progress = contextMap[task.id]!!
progress.replicatedBytes[key]!!.addAndGet(written)
progress.replicatedBytes[key]?.addAndGet(written)
if (LocalDateTime.now().minusSeconds(RECORD_TIME_INTERVAL).isAfter(progress.lastRecordTime)) {
progress.lastRecordTime = LocalDateTime.now()
updateProgress(task)
Expand Down

0 comments on commit eaf2782

Please sign in to comment.