Skip to content

[SecurityBundle] Prevent RuntimeException on profiler #48735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

marphi
Copy link
Contributor

@marphi marphi commented Dec 21, 2022

I've got RuntimeException "Impossible to access an attribute ("security_enabled") on a null variable." on the profiler page on a page without any configured firewall.

Q A
Branch? 6.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR symfony/symfony-docs#...

Example: I have a page without any configured firewall. The profiler looks like this:
Zrzut ekranu 2022-12-21 o 10 04 13

When I click on "Security" tab. I've got:
Zrzut ekranu 2022-12-21 o 10 06 10

This commit fix this issue. Now it looks good:
Zrzut ekranu 2022-12-21 o 10 07 04

…tribute ("security_enabled") on a null variable."
@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "6.2".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@marphi marphi changed the base branch from 6.3 to 6.2 December 21, 2022 09:12
@fabpot fabpot modified the milestones: 6.3, 6.2 Dec 21, 2022
@fabpot
Copy link
Member

fabpot commented Dec 21, 2022

Thank you @marphi.

@fabpot fabpot merged commit 4d5d6ba into symfony:6.2 Dec 21, 2022
@fabpot fabpot mentioned this pull request Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants