Add assert to check operation nil

This commit is contained in:
zhongwuzw 2019-03-20 11:21:04 +08:00
parent ebf41a3b01
commit 21565dbc8f
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@
} }
[asyncOperation complete]; [asyncOperation complete];
}]; }];
NSAssert(operation != nil, @"Operation should not be nil, [SDWebImageManager loadImageWithURL:options:context:progress:completed:] break prefetch logic");
@synchronized (token) { @synchronized (token) {
[operations addPointer:(__bridge void *)operation]; [operations addPointer:(__bridge void *)operation];
} }