Realm-cocoa: Getting Index 0 is out of bounds (must be less than 0) in searchBar ?

Created on 23 Oct 2016  路  3Comments  路  Source: realm/realm-cocoa

I've a single view app which has a tableview and a searchbar and the tableview acts as the results view of the search results
tableview contains data from realm database - it works fine
also the search works fine for first two characters
after typing the third character in searchbar it gives >>

Terminating app due to uncaught exception 'RLMException', reason: 'Index 0 is out of bounds (must be less than 0)'

screen shot 2016-10-23 at 3 10 03 pm

Most helpful comment

Index was out of bounds for the RowsInSection method , thanks !

All 3 comments

Index was out of bounds for the RowsInSection method , thanks !

How did you solve the issue?

search data count
if count < 1 to return

Was this page helpful?
0 / 5 - 0 ratings