Skip to content

No exception handling for routes when sessions are nullified or inactive #11

@crim3hound

Description

@crim3hound

Trying to retrieve the ContentType slug using $contentTypeSlug = $this->getExtension()->getExtConfig('contenttype', $user->getRoles()[0]); in FrontendUsersProfileController.php throws the exception Call to a member function getRoles() on null.

This happens when a user tries to access profile routes without an active session, either because it expired or was invalidated.

session_issue

I have found a solution for this issue and will share for review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions