Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 2bf1b56

Browse files
aljcappleguy
authored andcommitted
fixed potential ASPINRemoteImageDownloader crash (#1972)
1 parent f434192 commit 2bf1b56

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ - (nullable id)downloadImageWithURL:(NSURL *)URL
214214

215215
- (void)cancelImageDownloadForIdentifier:(id)downloadIdentifier
216216
{
217+
if (!downloadIdentifier) {
218+
return;
219+
}
220+
217221
ASDisplayNodeAssert([downloadIdentifier isKindOfClass:[NSUUID class]], @"downloadIdentifier must be NSUUID");
218222
[[self sharedPINRemoteImageManager] cancelTaskWithUUID:downloadIdentifier];
219223
}

0 commit comments

Comments
 (0)