Skip to content

Commit

Permalink
Fixed access to null CmsObject in A_CmsJspValueWrapper#toLink.
Browse files Browse the repository at this point in the history
  • Loading branch information
gWestenberger committed Jun 7, 2023
1 parent b18ef82 commit 535db50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/opencms/jsp/util/A_CmsJspValueWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ public CmsLinkWrapper getToLink() {
if (m_linkObj == null) {
String target = toString();
if (target != null) {
m_linkObj = Optional.of(new CmsLinkWrapper(m_cms, target));
m_linkObj = Optional.of(new CmsLinkWrapper(getCmsObject(), target));
} else {
m_linkObj = Optional.empty();
}
Expand Down

0 comments on commit 535db50

Please sign in to comment.