From 699813c6407e723ef842cc44c327156f2e5f16c6 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 21 May 2019 10:21:40 +0200 Subject: [PATCH] MOBILE-3039 core: Fix failed downloads loading forever --- src/providers/filepool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/filepool.ts b/src/providers/filepool.ts index 2be089ba3..09d873f94 100644 --- a/src/providers/filepool.ts +++ b/src/providers/filepool.ts @@ -2573,7 +2573,7 @@ export class CoreFilepoolProvider { // Some Android devices restrict the amount of usable storage using quotas. // If this quota would be exceeded by the download, it throws an exception. // We catch this exception here, and report a meaningful error message to the user. - if (errorObject instanceof FileTransferError && errorObject.exception.includes('EDQUOT')) { + if (errorObject instanceof FileTransferError && errorObject.exception && errorObject.exception.includes('EDQUOT')) { errorMessage = 'core.course.insufficientavailablequota'; }