Skip to content

Commit

Permalink
Add check for some cases where page is null (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun authored Feb 5, 2025
1 parent a5df4ed commit a7d7e39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected void createCommonAttributes(Theme theme, Locale locale, Properties mes

attributes.put("olSettings", new OLSettingsBean(realm));

if (page.equals(LOGIN)) {
if (page != null && page.equals(LOGIN)) {
UserModel user = context.getUser();
attributes.put("loginAttempt", new OLLoginAttemptBean(user));
}
Expand Down

0 comments on commit a7d7e39

Please sign in to comment.