Review 10.4 Merged

73102[BUGFIX] Prevent null pointer in PageLayoutView

Oli Bartsch CR +2 V +2 Easy +5 −2 updated 01/20/22, 16:25

Commit message

Under some circumstances, e.g. in a translations
only page module, a given $languageId (in this case
the default `0`) is not part of the $siteLanguages
array, since this only contains languages, allowed
for the user.

To fix a null pointer exception, we check whether
the SiteLanguage exists, before accessing it.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1