Skip to content

Commit

Permalink
Fix site not available issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alesfatalis committed Nov 22, 2024
1 parent ecd2400 commit 29dafd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected Optional<String> doGetMessage(final String[] keys, final Locale locale
}

private Optional<Locale> getSiteFallbackLocale() {
return Optional.of(siteManager.getCurrentSite())
return Optional.ofNullable(siteManager.getCurrentSite())
.map(Site::getI18n)
.map(I18nContentSupport::getFallbackLocale);
}
Expand Down

0 comments on commit 29dafd9

Please sign in to comment.