Closed krake79 closed 1 year ago
The problem is HandlerList::getListenersByPriority() triggering a crash on a valid priority number. Reproducing code:
$handlerList = HandlerListManager::global()->getListFor(get_class($this));
foreach (EventPriority::ALL as $priority) {
$currentList = $handlerList;
while ($currentList !== null) {
foreach ($currentList->getListenersByPriority($priority) as $registration) {
yield $registration;
}
$currentList = $currentList->getParent();
}
}
@SOF3 Maybe explore whether that code can be simplified by getListenerList() in 4.19?
Issue description
I'm running CPlot_dev142 and the current PM4.19.2. If I now want to add a claim, I get an error message:
ErrorException: "Undefined array key 5" (EXCEPTION) in "pmsrc/src/event/HandlerList" at line 105
Steps to reproduce the issue
Command: /P claim
OS and versions
Plugins
Crashdump, backtrace or other files