Open anasazmi571 opened 6 years ago
This one seems straightforward, a null primitive object's toString returns "null"... seems you could just replace null with "" in the final string.
I feel this is more of a convenience issue. When debugging code block functions (as they don't produce any error message for null reference exceptions), I use string concatenation to see the contents of a variable to see if it's properly set, and having to add null checks every time I call the toString of a variable whose contents I don't know is null or not is cumbersome.
Having the toString return either null
or an empty string for null variables, or some sort of error message for null variables or invalid function calls (with a line number) would be helpful.
If this issue is with Dynamo for Revit, please post your issue on the Dynamo for Revit Issues page.
If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.
Dynamo version
2.0
Operating system
Windows 10
What did you do?
I concatenated an object into a string. Example:
What did you expect to see?
The output to be as follows:
What did you see instead?
Just a
null
in the output.