redouane59 / twittered

Twitter API client for Java developers
Apache License 2.0
236 stars 64 forks source link

Fix outOfBound Exception if the count is bigger than the result size #304

Closed lepit31 closed 2 years ago

lepit31 commented 2 years ago

With a small count of lesser than 50 Direct Message if we call getDmList(50) we have an OutOfBound Exception

To test it use unit test : testGetDmListWithCountAndGetDm() on a twitter account with less than 55 Direct message

redouane59 commented 2 years ago

Hi @lepit31 , thank you very much for this PR, checking it now.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication