Merge pull request #2881 from stianst/KEYCLOAK-3034

KEYCLOAK-3034 NullPointerException when log in via Twitter
This commit is contained in:
Stian Thorgersen 2016-05-25 13:44:05 +02:00
commit 5ed09acd94

View file

@ -113,6 +113,9 @@ public class TwitterIdentityProvider extends AbstractIdentityProvider<OAuth2Iden
public Response authResponse(@QueryParam("state") String state,
@QueryParam("denied") String denied,
@QueryParam("oauth_verifier") String verifier) {
if (denied != null) {
return callback.cancelled(state);
}
try {
Twitter twitter = new TwitterFactory().getInstance();