App Crashing on expandableTableView(_:expandedCellsForRowAt:)
Firebase report a non recurrent crash. It appears randomly.
This is the crashlytics report:
Fatal Exception: NSRangeException *** -[__NSArrayM objectAtIndexedSubscript:]: index 18446744073709551615 beyond bounds [0 .. 9] Controller.expandableTableView(_:expandedCellsForRowAt:)
Fatal Exception: NSRangeException
0 CoreFoundation 0x18ab5986c __exceptionPreprocess
1 libobjc.A.dylib 0x19fb72c50 objc_exception_throw
2 CoreFoundation 0x18abc9e1c -[__NSCFString characterAtIndex:].cold.1
3 CoreFoundation 0x18aa47e8c -[__NSDictionaryI objectForKeyedSubscript:]
4 Souffleur de Rêves 0x102a428e4 AudioListController.expandableTableView(:expandedCellsForRowAt:) + 1218 (AudioListController.swift:1218)
5 ExpandableCell 0x103197a20 ExpandableTableView.open(indexPath:delegate:) + 111 (ExpandableTableView.swift:111)
6 ExpandableCell 0x103197280 ExpandableTableView.handleRowExpansion(at:) + 91 (ExpandableTableView.swift:91)
7 ExpandableCell 0x103196f00 ExpandableTableView.tableView(:didSelectRowAt:) + 65 (ExpandableTableView.swift:65)
8 ExpandableCell 0x103197358 @objc ExpandableTableView.tableView(_:didSelectRowAt:) (
An undefined index is applied.
If someone can help me to solve this crash issue. Thank you