From f0f12c459e678a36fb8364c6bf1e19181b19ced6 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Mon, 23 Jan 2023 22:10:23 +0100 Subject: [PATCH] try fix with check for null and undefined --- src/imageloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageloader.js b/src/imageloader.js index 85ea7b4c..365c5c79 100644 --- a/src/imageloader.js +++ b/src/imageloader.js @@ -234,7 +234,7 @@ $.ImageLoader.prototype = { * @param callback - Called once cleanup is finished. */ function completeJob(loader, job, callback) { - if (job.errorMsg !== '' && job.image === null && job.tries < 1 + loader.tileRetryMax) { + if (job.errorMsg !== '' && (job.image === null || job.image === undefined) && job.tries < 1 + loader.tileRetryMax) { loader.failedTiles.push(job); } var nextJob;