Problem/Motivation
The getLayout() method in Drupal\layout_library\Plugin\SectionStorage\Library relies on getSectionList(), which may return NULL if the necessary layout context is missing/not required. This creates potential for null reference errors in dependent methods, such as initLayoutOverrides() which assumes getLayout() will always return a valid layout instance.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork layout_library_st-3487820
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tuwebo commentedComment #7
unstatu commentedThanks for the contribution. Merged!
Comment #8
unstatu commented