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

Avoid NPE in replStringOf #6706

Merged
merged 1 commit into from
Jun 4, 2018
Merged

Conversation

som-snytt
Copy link
Contributor

If a value has a null-valued toString, print "null toString",
which distinguishes the value from null.

If a value has a null-valued toString, print "null toString",
which distinguishes the value from `null`.
@scala-jenkins scala-jenkins added this to the 2.13.0-M5 milestone Jun 2, 2018

val tpolecat = new Object {
override def toString(): String = null
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is what they call "fighting words".

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@adriaanm adriaanm merged commit 8b65ff4 into scala:2.13.x Jun 4, 2018
@som-snytt som-snytt deleted the issue/stringof-npe branch June 26, 2018 17:48
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.

6 participants