We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3190096 commit 7ae2acaCopy full SHA for 7ae2aca
src/utils/sformat.fs
@@ -1194,7 +1194,7 @@ namespace Microsoft.FSharp.Text.StructuredFormat
1194
| :? bool as b -> (if b then "true" else "false")
1195
| :? char as c -> "\'" + formatChar true c + "\'"
1196
| _ -> try let text = obj.ToString()
1197
- text
+ if text = null then "" else text
1198
with e ->
1199
// If a .ToString() call throws an exception, catch it and use the message as the result.
1200
// This may be informative, e.g. division by zero etc...
0 commit comments