Skip to content

Commit

Permalink
fix:cast exception when usage was present and lti object was rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-simon committed Oct 10, 2024
1 parent 59d4f01 commit 64831e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public NodeUrls(Node node, String requestedVersion) {
repositoryBaseUrl = URLHelper.getBaseUrl(true);
if(node.getAspects().contains(CCConstants.getValidLocalName(CCConstants.CCM_ASPECT_LTITOOL_NODE))){
generateLtiResourceLink = repositoryBaseUrl + "/rest/ltiplatform/v13/generateLoginInitiationFormResourceLink?nodeId=" + node.getRef().getId();
if(Context.getCurrentInstance() != null && Context.getCurrentInstance().getSessionAttribute(CCConstants.AUTH_SINGLE_USE_NODEIDS) != null){
if(Context.getCurrentInstance() != null){
if(Context.getCurrentInstance().isSingleUseNodeId(node.getRef().getId())){
//generate short living jwt
try {
Expand Down

0 comments on commit 64831e8

Please sign in to comment.