parse-community / ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Other
592 stars 324 forks source link

ParseQueryAdapter getting error - IndexOutOfBoundsException #117

Closed lems111 closed 8 years ago

lems111 commented 8 years ago

hello, I've implemented a chat app in android that uses push notifications and the ParseQueryAdapter. I am implementing a limit in the number of messages per chatroom. In cloud code, I am checking if I've reached my limit and I remove the oldest message(s) to get me back to my limit. What's happening after removing the messages, my android app crashes and I get the following stacktrace: _NOTE - I am using this module version - com.parse:parseui-widget-android:0.0.1 _

java.lang.IndexOutOfBoundsException: Invalid index 8, size is 5 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.parse.ParseQueryAdapter.getItem(ParseQueryAdapter.java:299) at com.parse.ParseQueryAdapter.getView(ParseQueryAdapter.java:606)

parse-github-bot commented 8 years ago

Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.

Please try the latest SDK. Our release notes have details about what issues were fixed in each release.

In addition, you might find the following resources helpful:

parse-github-bot commented 8 years ago

This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback.

parse-github-bot commented 8 years ago

We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback.