Membership Dashboard - Fatal Error starting with 5.41.beta1
Go to Membership Dashboard - http://wpcvrc.test/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fmember&reset=1
Expected result is seeing recent memberships.
Actual result - Fatal Error
[15-Aug-2021 15:01:30 America/New_York] PHP Fatal error: Uncaught TypeError: Argument 1 passed to CRM_Core_Task::getTitlesFilteredByPermission() must be of the type array, null given, called in /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Member/Task.php on line 154 and defined in /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Core/Task.php:204
Stack trace:
#0 /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Member/Task.php(154): CRM_Core_Task::getTitlesFilteredByPermission(NULL, true)
#1 /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Member/Form/Search.php(126): CRM_Member_Task::permissionedTaskTitles(1)
#2 /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(642): CRM_Member_Form_Search->buildQuickForm()
#3 /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(76): CRM_Core_Form->buildForm()
#4 /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM in /srv/www/buildkit/wpcvrc/web/wp-content/plugins/civicrm/civicrm/CRM/Core/Task.php on line 204
This is a regression in the RC as this error does not occur on stable (5.40.1)