fixes an issue with empty icons being generated when downloading them (fixes #709)

This commit is contained in:
Michael Starke
2017-12-12 10:57:14 +01:00
parent 0f43afdb59
commit 2d5974982e

View File

@@ -142,7 +142,7 @@ typedef NS_ENUM(NSInteger, MPIconDownloadStatus) {
&& data.length > 0) {
dispatch_async(dispatch_get_main_queue(), ^{
KPKIcon *newIcon = [[KPKIcon alloc] initWithImageData:data];
if(newIcon) {
if(newIcon && newIcon.image) {
self.downloadStatus = MPIconDownloadStatusNone;
[metaData addCustomIcon:newIcon];
[self _updateCollectionViewContent];