diff --git a/src/main/java/org/olat/modules/adobeconnect/manager/AdobeConnectManagerImpl.java b/src/main/java/org/olat/modules/adobeconnect/manager/AdobeConnectManagerImpl.java index 4cfc00cce6b383080c31fc0c0cf547fa16ca779e..b7e25674c505304887de23f3c84367561a6933f9 100644 --- a/src/main/java/org/olat/modules/adobeconnect/manager/AdobeConnectManagerImpl.java +++ b/src/main/java/org/olat/modules/adobeconnect/manager/AdobeConnectManagerImpl.java @@ -389,24 +389,26 @@ public class AdobeConnectManagerImpl implements AdobeConnectManager, DeletableGr } AdobeConnectSco sco = getAdapter().getScoMeeting(meeting, errors); - String urlPath = sco.getUrlPath(); - UriBuilder builder = adobeConnectModule - .getAdobeConnectHostUriBuilder() - .path(urlPath); - - BreezeSession session = null; - Authentication authentication = securityManager.findAuthentication(identity, ACONNECT_PROVIDER); - if(authentication != null) { - session = getAdapter().commonInfo(authentication, errors); - } - - if(session != null && StringHelper.containsNonWhitespace(session.getSession())) { - builder.queryParam("session", session.getSession()); - } else { - String fullName = userManager.getUserDisplayName(identity); - builder.queryParam("guestName", fullName).build(); + if(sco != null) { + String urlPath = sco.getUrlPath(); + UriBuilder builder = adobeConnectModule + .getAdobeConnectHostUriBuilder() + .path(urlPath); + + BreezeSession session = null; + Authentication authentication = securityManager.findAuthentication(identity, ACONNECT_PROVIDER); + if(authentication != null) { + session = getAdapter().commonInfo(authentication, errors); + } + + if(session != null && StringHelper.containsNonWhitespace(session.getSession())) { + builder.queryParam("session", session.getSession()); + } else { + String fullName = userManager.getUserDisplayName(identity); + builder.queryParam("guestName", fullName).build(); + } + return builder.build().toString(); } - return builder.build().toString(); } return null; }