Skip to content

Commit

Permalink
feat: if value is null return null to token type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz committed Jan 12, 2022
1 parent 84b27cd commit 78ed12f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.jans.orm.annotation.AttributeEnum;
import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -71,6 +72,9 @@ public static TokenTypeHint fromString(String param) {
}

public static TokenTypeHint getByValue(String value) {
if (StringUtils.isBlank(value)) {
return null;
}
return mapByValues.get(value);
}

Expand Down

0 comments on commit 78ed12f

Please sign in to comment.