Crashed: com.apple.main-thread
0 MyAppName 0x100b9f598 specialized SearchVC.tableView(UITableView, didSelectRowAt : IndexPath) -> () (SearchVC.swift:1583)
1 MyAppName 0x100b902ec @objc SearchVC.tableView(UITableView, didSelectRowAt : IndexPath) -> () (SearchVC.swift)
2 UIKit 0x18bb36edc -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1356
3 UIKit 0x18bb8ab60 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 268
4 UIKit 0x18bc15884 _runAfterCACommitDeferredBlocks + 296
5 UIKit 0x18bc0b958 _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
6 UIKit 0x18baf051c _afterCACommitHandler + 132
7 CoreFoundation 0x181bc6910 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
8 CoreFoundation 0x181bc4238 __CFRunLoopDoObservers + 412
9 CoreFoundation 0x181bc4884 __CFRunLoopRun + 1436
10 CoreFoundation 0x181ae4da8 CFRunLoopRunSpecific + 552
11 GraphicsServices 0x183aca020 GSEventRunModal + 100
12 UIKit 0x18bb04758 UIApplicationMain + 236
13 MyAppName 0x100b65214 main (History+CoreDataProperties.swift:15)
14 libdyld.dylib 0x181575fc0 start + 4
The content above is where I receive the report from fabric. However, I do not really understand where does the crash happens. The only thing I understand from above is user did select a row and it returns empty. I checked my code, I did make sure all the array are set to empty first before append new stuffs and also reload the table view in main thread. Sorry for my knowledge, I am a just a beginner iOS developr. Many thanks in advance for helping me to solve this error.