Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace null check with string.IsNullOrWhiteSpace() #3717

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

mrivera-ms
Copy link
Contributor

This fixes issue #3590, by returning MicrosoftAppCredentials.Empty when AppId is set to null or empty spaces.

@mrivera-ms mrivera-ms requested review from cleemullins, aarongas and gabog and removed request for aarongas April 9, 2020 19:39
Copy link
Member

@carlosscastro carlosscastro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrivera-ms! Note that there are not super well-defined semantics of null vs empty credentials. To be safe on this change, we'd need to test basic bot scenarios using 1) valid app + password and 2) no credentials locally with emulator. If you have tested those 2, I'm ready to sign off.

Copy link
Contributor

@tomlm tomlm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BotFrameworkHttpClient: Change null check on 'appId' to StringIsNullOrEmpty
3 participants