Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
madurangasiriwardena committed Feb 3, 2024
1 parent 6d269ca commit 929031a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,12 @@ private void buildOutboundQueryString(HttpServletRequest request, Authentication
.append("&relyingParty=").append(URLEncoder.encode(context.getRelyingParty(), "UTF-8"))
.append("&type=").append(context.getRequestType()).append("&")
.append(FrameworkConstants.REQUEST_PARAM_SP).append("=")
.append(URLEncoder.encode(context.getServiceProviderName(), "UTF-8")).append("&")
.append(FrameworkConstants.REQUEST_PARAM_SP_UUID).append("=")
.append(URLEncoder.encode(context.getServiceProviderResourceId())).append("&")
.append("&isSaaSApp=")
.append(URLEncoder.encode(context.getServiceProviderName(), "UTF-8")).append("&");
if (context.getServiceProviderResourceId() != null) {
outboundQueryStringBuilder.append(FrameworkConstants.REQUEST_PARAM_SP_UUID).append("=")
.append(URLEncoder.encode(context.getServiceProviderResourceId(), "UTF-8")).append("&");
}
outboundQueryStringBuilder.append("&isSaaSApp=")
.append(context.getSequenceConfig().getApplicationConfig().isSaaSApp());
} catch (UnsupportedEncodingException e) {
throw new FrameworkException("Error while URL Encoding", e);
Expand Down

0 comments on commit 929031a

Please sign in to comment.