Buggy code:
public class AuthorizationGrant implements IAuthorizationGrant { private static final Log LOGGER = Logging . getLog ( AuthorizationGrantListLdap . class ) ; private IAuthorizationGrant grant ; public AuthorizationGrant ( User user , AuthorizationGrantType authorizationGrantType , Client client , Date authenticationTime ) { } public IAuthorizationGrant getGrant ( ) { } @ Override public String getGrantId ( ) { } @ Override public void setGrantId ( String p_grantId ) { } @ Override public AuthorizationCode getAuthorizationCode ( ) { } @ Override public void setAuthorizationCode ( AuthorizationCode authorizationCode ) { } @ Override public String getNonce ( ) { } @ Override public void setNonce ( String nonce ) { } @ Override public AccessToken createAccessToken ( ) { } @ Override public AccessToken createLongLivedAccessToken ( ) { } @ Override public RefreshToken createRefreshToken ( ) { } @ Override public IdToken createIdToken ( String nonce , AuthorizationCode authorizationCode , AccessToken accessToken , String authMode ) throws EncryptionException , SignatureException , InvalidClaimException , InvalidJweException , InvalidJwtException { <START_BUG> return grant . createIdToken ( nonce , authorizationCode , accessToken , getScopes ( ) , authMode ) ; <END_BUG> } @ Override public RefreshToken getRefreshToken ( String refreshTokenCode ) { } @ Override public AbstractToken getAccessToken ( String tokenCode ) { } @ Override public boolean isValid ( ) { } @ Override public void revokeAllTokens ( ) { } @ Override public void checkExpiredTokens ( ) { } @ Override public String checkScopesPolicy ( String scope ) { } @ Override public User getUser ( ) { } @ Override public String getUserId ( ) { } @ Override public String getUserDn ( ) { } @ Override public AuthorizationGrantType getAuthorizationGrantType ( ) { } @ Override public Client getClient ( ) { } @ Override public String getClientId ( ) { } @ Override public String getClientDn ( ) { } @ Override public List < AccessToken > getAccessTokens ( ) { } @ Override public Set < String > getRefreshTokensCodes ( ) { } @ Override public Set < String > getAccessTokensCodes ( ) { } @ Override public List < RefreshToken > getRefreshTokens ( ) { } @ Override public void setRefreshTokens ( List < RefreshToken > refreshTokens ) { } @ Override public AccessToken getLongLivedAccessToken ( ) { } @ Override public IdToken getIdToken ( ) { } @ Override public Set < String > getScopes ( ) { } @ Override public Date getAuthenticationTime ( ) { } @ Override public TokenLdap getTokenLdap ( ) { } @ Override public void setTokenLdap ( TokenLdap p_tokenLdap ) { } @ Override public void setLongLivedAccessToken ( AccessToken longLivedAccessToken ) { } @ Override public void setIdToken ( IdToken idToken ) { } @ Override public void setScopes ( Collection < String > scopes ) { } @ Override public void setAccessTokens ( List < AccessToken > accessTokens ) { } @ Override public JwtAuthorizationRequest getJwtAuthorizationRequest ( ) { } @ Override public void setJwtAuthorizationRequest ( JwtAuthorizationRequest p_jwtAuthorizationRequest ) { } @ Override public void setAcrValues ( String authMode ) { } @ Override public void save ( ) { } @ Override public String getAcrValues ( ) { } No newline ; at end ; of file ; }

Fix:
return grant . createIdToken ( nonce , authorizationCode , accessToken , authMode ) ;