From d7f4f72a178ba56d9aa42de7484c9887d4d44816 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Fri, 8 May 2015 12:22:34 +0300 Subject: [PATCH] Fixed: image-cache exception #127 --- ui/image-cache/image-cache-common.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/image-cache/image-cache-common.ts b/ui/image-cache/image-cache-common.ts index ac907b5ee..3ab69f965 100644 --- a/ui/image-cache/image-cache-common.ts +++ b/ui/image-cache/image-cache-common.ts @@ -125,7 +125,9 @@ export class Cache extends observable.Observable implements definition.Cache { public _onDownloadCompleted(key: string, image: any) { var request = this._pendingDownloads[key]; - this.set(request.key, image); + if (request.key && image) { + this.set(request.key, image); + } this._currentDownloads--;