Commit c83bacae authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Fix handling of invalid image responses

handle invalid image responses while updating unknown image id
parent 0420d416
......@@ -1592,6 +1592,12 @@
callback(this.get(id));
}
}, this), _.bind(function(image, msg, xhr) {
if (!image) {
this.add({id:id, name:"Unknown image", size:-1,
progress:100, status:"DELETED"});
callback(this.get(id));
return;
}
var img_data = this._read_image_from_request(image, msg, xhr);
this.add(img_data);
callback(this.get(id));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment