Skip to content

Fix infinite loop in Append(object value)#10

Merged
josesimoes merged 2 commits intonanoframework:developfrom
ishvedov:develop
May 28, 2018
Merged

Fix infinite loop in Append(object value)#10
josesimoes merged 2 commits intonanoframework:developfrom
ishvedov:develop

Conversation

@ishvedov
Copy link
Copy Markdown
Contributor

Description

Fix infinite loop in Append(object value)

Motivation and Context

How Has This Been Tested?

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: ishvedov ivan.shvedov@gmail.com

@nfbot
Copy link
Copy Markdown
Member

nfbot commented May 28, 2018

Hi @ishvedov,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 28, 2018

CLA assistant check
All committers have signed the CLA.

@josesimoes
Copy link
Copy Markdown
Member

Nice catch! 👏 💯

Comment thread source/System/Text/StringBuilder.cs Outdated
public StringBuilder Append(object value)
{
return value == null ? this : Append(value);
return Append(value.ToString());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The check for null is still required, otherwise the ToString() would fail.

Check here the code from the full framework.

Please follow.

Copy link
Copy Markdown
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

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

LGTM

@josesimoes josesimoes merged commit 715a324 into nanoframework:develop May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants