cms icon indicating copy to clipboard operation
cms copied to clipboard

Deleting a user group results in error Call to a member function handle() on null

Open OleksiiBrylin opened this issue 2 years ago • 0 comments

Bug description

After removing a group with users I get Call to a member function handle() on null error on users page in CP. NOTE: users stored in DB

How to reproduce

I created a Permission I created a User to which I assigned this Group I deleted the Group: OK I clicked on Users in the sidebar: I got a debug bar message Call to a member function handle() on null Shouldn't it be possible to access users related to a deleted group?

Logs

No response

Environment

Users stored in DB
Statamic 3.3.24 Pro
Laravel 8.83.12
PHP 8.1.5
appswithlove/user-manager dev-main
statamic/seo-pro 3.1.0

Installation

Starter Kit using via CLI

Antlers Parser

No response

Additional details

This issue was before https://github.com/statamic/cms/issues/1064

OleksiiBrylin avatar Aug 01 '22 08:08 OleksiiBrylin

Closing this since it's a duplicate of #6192.

But thanks for reporting it! 🙏

joshuablum avatar Sep 19 '22 14:09 joshuablum