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 ba572f3035
commit 2d0729b2c5

View file

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