#84553Uncaught TYPO3 Exception in Scheduler
Description
Scheduler throws an unhandled exception in method isValidTaskObject when the deserialized task is null or not an instance of AbstractTask.
Core: Exception handler (CLI): Uncaught TYPO3 Exception: Call to a member function getExecution() on null | Error thrown in file /homepages/32/d31932396/htdocs/typo3/typo3_src-8.7.12/typo3/sysext/scheduler/Classes/Scheduler.php in line 449
The two conditions of the validity check return get_class($task->getExecution()) !== '__PHP_Incomplete_Class' && $task instanceof Task\AbstractTask;
should simply be reordered for the instanceof-check to be executed first so false is returned immediately without calling a method of the invalid task.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.