Skip to content

String.Join(string, object[]) bug when first item is null #5681

@GSPP

Description

@GSPP

Continuing my series to break the BCL for fun and no profit here's another string.Join bug:

String.Join(",", new object[] { null, "x" })

returns "". It should return ",x".

This bug exists in CoreCLR, in 4.6.2 and in the recently merged string.Join fix.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions