Bug Fix: Set URL object before attempting to log

This was logging a potentially unassigned variable. Oops.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-06-09 23:56:08 -07:00
parent 88f2dfc338
commit a421955c4a

View file

@ -473,11 +473,11 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
id<SentrySpan> innerTask = nil; id<SentrySpan> innerTask = nil;
NSURL *url = nil; NSURL *url = nil;
@try { @try {
url = obj;
if(containerTask) { if(containerTask) {
pathTask = [containerTask startChildWithOperation:@"Process path as container" description:[NSString stringWithFormat:@"Checking if file is container: %@", url]]; pathTask = [containerTask startChildWithOperation:@"Process path as container" description:[NSString stringWithFormat:@"Checking if file is container: %@", url]];
} }
url = obj;
[lock lock]; [lock lock];
if([uniqueURLs containsObject:url]) { if([uniqueURLs containsObject:url]) {
[lock unlock]; [lock unlock];