I am seeing crash reports with our users at this line of code
NSURL *url = [NSURL URLWithString:self->urlAddress];
self->urlAddress is never nil.
My understanding is that if self->urlAddress is malformed in someway then URLWithString should return nil but it seems to crash the thread as below.
Has anybody any suggestions as t what might be wrong?
Thread 3 name:
Thread 3 Crashed:
0 CoreFoundation 0x00000001a73704a0 CFStringGetLength + 60 (CFInternal.h:889)
1 CoreFoundation 0x00000001a739b5b4 _CFURLCreateWithURLString + 84 (CFURL.c:2046)
2 Foundation 0x00000001a8635908 +[NSURL(NSURL) URLWithString:relativeToURL:] + 52 (NSURL.m:463)
3 Dubline 0x0000000102f3391c __58-[settingsAccountViewController reloadDublineSettingsPage]_block_invoke + 1024 (settingsAccountViewController.m:273)
4 CFNetwork 0x00000001a79f23dc __40-[__NSURLSessionLocal taskForClassInfo:]_block_invoke + 540 (LocalSession.mm:687)
5 CFNetwork 0x00000001a7a04768 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 244 (LocalSessionTask.mm:584)
6 libdispatch.dylib 0x00000001a6fb9a84 _dispatch_call_block_and_release + 32 (init.c:1466)
7 libdispatch.dylib 0x00000001a6fbb81c _dispatch_client_callout + 20 (object.m:559)
8 libdispatch.dylib 0x00000001a6fc3004 _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
9 libdispatch.dylib 0x00000001a6fc3c34 _dispatch_lane_invoke + 456 (queue.c:3862)
10 libdispatch.dylib 0x00000001a6fce4bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
11 libsystem_pthread.dylib 0x00000001f304a7a4 0x1f3047000 + 14244
12 libsystem_pthread.dylib 0x00000001f305174c 0x1f3047000 + 42828
3
0
2.4k