WenchaoD / FSCalendar

A fully customizable iOS calendar library, compatible with Objective-C and Swift
MIT License
10.6k stars 1.94k forks source link

[fix] Fix out-of-bounds selection in UICollectionView" #1433

Open ye7ia33 opened 6 months ago

github-jinwei commented 5 months ago

error info:

0 (null) in __exceptionPreprocess ()

1 (null) in objc_exception_throw ()

2 (null) in -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] ()

3 (null) in -[UICollectionView _validateSelectionOrHighlightIndexPath:isSelection:allowMassIndexPath:assertIfInvalid:] ()

UICollectionView tries to select a particular IndexPath and finds that the IndexPath is invalid. This usually occurs when the IndexPath does not exist in the current data source.