fixed nullpointer exception in OAuthImpl