79600178

Date: 2025-04-30 11:02:51
Score: 1
Natty:
Report link

The crash happens because ListFiltered is null when getCount() is called. Fix it by changing getCount() to:
return listFiltered != null ? listFiltered.size() : 0;

Also, move filterResults.count and filterResults.values outside the loop in performFiltering() to avoid inconsistent behavior.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user30039244