crayon icon indicating copy to clipboard operation
crayon copied to clipboard

NullReferenceException if string is null

Open chrfin opened this issue 4 years ago • 0 comments

I observed a NullReferenceException when we tried to colorize a string which was null.  

This was tracked to the following code:

https://github.com/riezebosch/crayon/blob/master/Crayon/StringExtensions.cs

Maybe add a null-check there?

chrfin avatar Apr 07 '21 09:04 chrfin