File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ local function downloadReceiveCallback(self, data)
296
296
dldata .data [# dldata .data + 1 ] = data
297
297
dldata .bytesWritten = dldata .bytesWritten + # data
298
298
299
- if dldata .length then
299
+ if dldata and dldata .length then
300
300
self .data .progress :setValue (dldata .bytesWritten )
301
301
setStatusText (self , L (" beatmapSelect:download:downloadingBytesProgress" , {
302
302
a = dldata .bytesWritten ,
308
308
local function downloadFinishCallback (self )
309
309
local dldata = self .persist .downloadData
310
310
311
- -- If dldata is nil, that means it's loaded in responseCallback
311
+ -- If dldata is nil, that means it's loaded in responseCallback or not found.
312
312
if dldata then
313
313
local mapData = table.concat (dldata .data )
314
314
-- Save map data and initialize
You can’t perform that action at this time.
0 commit comments