Skip to content

Conversation

@sc-ivanlieckens
Copy link
Member

Description / Motivation

  • Removed throwing an error and rendering nothing instead for when no ISitecoreRenderingContext is available

In case of Experience Edge unavailability the ISitecoreRenderingContext might be empty, there is no reason to throw an exception and crash the page from rendering. This tag is often used in a main layout (like it was on MVP Website) which is also used when rendering error pages without a Sitecore context. Having this tag helper on the page causes issues in such case while it's perfectly acceptable to have an empty result.

Testing

  • The Unit & Intergration tests are passing.
  • I have added the necessary tests to cover my changes.

Terms

+ Removed throwing an error and rendering nothing instead for <sc-editingscripts /> when no ISitecoreRenderingContext is available
@sc-ivanlieckens sc-ivanlieckens self-assigned this Jan 9, 2026
@sc-ivanlieckens sc-ivanlieckens added the bug Something isn't working label Jan 9, 2026
@sc-ivanlieckens sc-ivanlieckens moved this to In review in ASP.NET Core SDK Jan 9, 2026
@robearlam robearlam merged commit bb2a9f9 into main Jan 11, 2026
4 checks passed
@robearlam robearlam deleted the fix/nullref-editingscriptstaghelper branch January 11, 2026 21:44
@github-project-automation github-project-automation bot moved this from In review to Done in ASP.NET Core SDK Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants