Skip to content

Commit

Permalink
Fixes #9947 - check that each selector inside of _selectors isn't nul…
Browse files Browse the repository at this point in the history
…l before calculating #totalKeys (#9962)

Check that selector isn't null before calculating totalKeys.
  • Loading branch information
strogiyotec authored Jun 25, 2023
1 parent 4e19fac commit 283b74a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ protected void execute(Runnable task)
public int getTotalKeys()
{
int keys = 0;
for (final ManagedSelector selector : _selectors)
for (ManagedSelector selector : _selectors)
{
keys += selector.getTotalKeys();
if (selector != null)
keys += selector.getTotalKeys();
}
return keys;
}


/**
* @return the number of selectors in use
*/
Expand Down

0 comments on commit 283b74a

Please sign in to comment.