NullReferenceException when searching

Apr 29, 2015 at 3:22 PM
Hi Linvi,
I needing to search twitter (search/tweets EP) and it's working beautifully, apart from very occasionally receiving this exception:
2015-04-29 14:55:04 - TwitterRestPoller.Program: Error: Exception whilst fetching Search. Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Tweetinvi.Controllers.Search.SearchQueryExecutor.UpdateMatchingTweets(IEnumerable`1 searchResultsDTOs, ITweetSearchParameters tweetSearchParameters)
   at Tweetinvi.Controllers.Search.SearchQueryExecutor.SearchTweetsWithMetadata(ITweetSearchParameters tweetSearchParameters)
   at Tweetinvi.Controllers.Search.SearchQueryExecutor.SearchTweets(ITweetSearchParameters tweetSearchParameters)
   at Tweetinvi.Controllers.Search.SearchController.SearchTweets(ITweetSearchParameters tweetSearchParameters)
   at Tweetinvi.Search.SearchTweets(ITweetSearchParameters tweetSearchParameters)
   at TwitterRestPoller.ProcessTwitterSearch.fetchNextSearch(TwitterAccount user) in c:\Users\Josh Keegan\Documents\Visual Studio 2013\Projects\CommsManager\TwitterRestPoller\ProcessTwitterSearch.cs:line 227
   at TwitterRestPoller.ProcessTwitterSearch.pollTwitterSearch(TwitterAccount user) in c:\Users\Josh Keegan\Documents\Visual Studio 2013\Projects\CommsManager\TwitterRestPoller\ProcessTwitterSearch.cs:line 173
It's not currently causing me any problems, but thought you'd be interested.
Cheers,
Josh
Coordinator
Apr 29, 2015 at 4:13 PM
Hi Josh,

Thanks for the information, I will investigate this.

Linvi
Coordinator
Apr 29, 2015 at 4:33 PM
I have just issued a fix that will be available in 0.9.7.2 and 0.9.8.0.
As a workaround please verify the RateLimits before performing a search.

Thanks again for reporting issues :)

Cheers,
Linvi
Marked as answer by linvi on 4/29/2015 at 8:33 AM