Skip to content

Commit

Permalink
SHIBUI-836: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Sep 12, 2018
1 parent f070306 commit c688c14
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public class ShibbolethPlaceholderTokenAwareValueResolvingService implements Tok

@Override
public String resolveValueFromTokenPlaceholder(String potentialTokenPlaceholder) {
requireNonNull(potentialTokenPlaceholder, "potentialTokenPlaceholder must not be null");
//Ignore nulls.
if(potentialTokenPlaceholder == null) {
return potentialTokenPlaceholder;
}

if(potentialTokenPlaceholder.contains(SHIB_IDP_PLACEHOLDER_PREEFIX)) {
String normalizedTokenPlaceholder =
potentialTokenPlaceholder.replace(SHIB_IDP_PLACEHOLDER_PREEFIX, STANDART_PLACEHOLDER_PREFIX);
Expand Down

0 comments on commit c688c14

Please sign in to comment.