Skip to content
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

Fix null exceptions when requesting specific content trough the backoffice APIs #17846

Open
wants to merge 1 commit into
base: v13/dev
Choose a base branch
from

Nullcheck user in Content permission handlers

4196f7e
Select commit
Loading
Failed to load commit list.
Open

Fix null exceptions when requesting specific content trough the backoffice APIs #17846

Nullcheck user in Content permission handlers
4196f7e
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (v13/dev) succeeded Dec 19, 2024 in 38s

CodeScene PR Check

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.01 (9.62 -> 9.62)

View detailed results in CodeScene

Details

Annotations

Check notice on line 72 in src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandler.cs

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (v13/dev)

ℹ Getting worse: Complex Method

ContentPermissionsQueryStringHandler increases in cyclomatic complexity from 11 to 12, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.