We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 315959a + d7f4f72 commit 7609f1fCopy full SHA for 7609f1f
ui/image-cache/image-cache-common.ts
@@ -125,7 +125,9 @@ export class Cache extends observable.Observable implements definition.Cache {
125
public _onDownloadCompleted(key: string, image: any) {
126
var request = <DownloadRequest>this._pendingDownloads[key];
127
128
- this.set(request.key, image);
+ if (request.key && image) {
129
+ this.set(request.key, image);
130
+ }
131
132
this._currentDownloads--;
133
0 commit comments