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:
parent
ba572f3035
commit
2d0729b2c5
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue