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

add null string support in StringUtils #3826

Merged
merged 3 commits into from
Apr 29, 2020

Conversation

Danieladu
Copy link
Collaborator

close: #3825
Support null string in Ellipsis and Hash method

@Danieladu Danieladu requested a review from tomlm April 29, 2020 06:40
@Danieladu Danieladu changed the title add null string support in StringUtil add null string support in StringUtils Apr 29, 2020
Copy link
Contributor

@boydc2014 boydc2014 left a comment

Choose a reason for hiding this comment

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

@tomlm can you confirm? without this, TestBot.Json in master is broken

xieofxie added a commit to xieofxie/botbuilder-dotnet that referenced this pull request Apr 29, 2020
StringUtils fixed in
microsoft#3826
@@ -32,6 +33,7 @@ public static string Ellipsis(string text, int length)
/// <returns>string which is unique SHA256 hash.</returns>
public static string Hash(string text)
{
text = text ?? string.Empty;
Copy link
Contributor

@tomlm tomlm Apr 29, 2020

Choose a reason for hiding this comment

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

string.Empty [](start = 26, length = 13)

This should throw new ArgumentNullException(nameof(text)) #Resolved

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:

@tomlm tomlm merged commit 22b2c3d into master Apr 29, 2020
@tomlm tomlm deleted the hond/add-null-support-of-stringutil branch April 29, 2020 16:02
cleemullins pushed a commit that referenced this pull request May 1, 2020
* create parity with OAuthPrompt

* fix

StringUtils fixed in
#3826
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.

Test.json project run failed with "Object reference not set to an instance of an object."
3 participants