Add assert to check operation nil
This commit is contained in:
parent
ebf41a3b01
commit
21565dbc8f
|
@ -140,6 +140,7 @@
|
|||
}
|
||||
[asyncOperation complete];
|
||||
}];
|
||||
NSAssert(operation != nil, @"Operation should not be nil, [SDWebImageManager loadImageWithURL:options:context:progress:completed:] break prefetch logic");
|
||||
@synchronized (token) {
|
||||
[operations addPointer:(__bridge void *)operation];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue