Skip to content

Commit

Permalink
MOL-1263: check locale for null
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Nov 24, 2023
1 parent 17428cc commit bea6d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscriber/CheckoutConfirmPageSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private function addMollieLocaleVariableToPage($args): void
/** @var LanguageEntity $language */
$language = $languagesResult->first();

if ($language !== null) {
if ($language !== null && $language->getLocale() !== null) {
$locale = $language->getLocale()->getCode();
}
}
Expand Down

0 comments on commit bea6d31

Please sign in to comment.