Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE crash when removing filter #103

Closed
piotrpo opened this issue Jun 6, 2016 · 1 comment
Closed

NPE crash when removing filter #103

piotrpo opened this issue Jun 6, 2016 · 1 comment

Comments

@piotrpo
Copy link

piotrpo commented Jun 6, 2016

When using AbstractExpandableItem with not initialized sub item list, after setting empty filter and call adapter.filterItems() we have got this crash.

I had work around it setting empty list of subitems after creating expandable item.

Process: ****, PID: 25237
java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
at eu.davidea.flexibleadapter.FlexibleAdapter.resetFilterFlags(FlexibleAdapter.java:2854)
at eu.davidea.flexibleadapter.FlexibleAdapter.filterItems(FlexibleAdapter.java:2453)

@davideas davideas added the bug label Jun 6, 2016
@davideas
Copy link
Owner

davideas commented Jun 6, 2016

@piotrpo, thanks, I'm going to fix it soon.

davideas added a commit that referenced this issue Jun 6, 2016
Fixed expansion status after filtering expandable items.
Fixed animation changes.
@davideas davideas added resolved and removed resolved labels Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants