dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

Guard.IsNotWhiteSpace gives exception on null value

Open vman26 opened this issue 3 years ago • 0 comments

Describe the bug Null check done in Guard.IsNotWhiteSpace while Guard.IsNotNullOrWhiteSpace is also available. Code of Guard.IsNotWhiteSpace has the same implementation as Guard.IsNotNullOrWhiteSpace. null does not feel equal to whitespace.

Regression No response

Steps to reproduce Call Guard.IsNotWhiteSpace(null), this gives a System.ArgumentException.

Screenshots No response

IDE and version VS 2017

IDE version No response

Nuget packages

  • [ ] CommunityToolkit.Common
  • [X] CommunityToolkit.Diagnostics
  • [ ] CommunityToolkit.HighPerformance
  • [ ] CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s) 8.0.0

Additional context No response

Help us help you No, just wanted to report this

vman26 avatar Sep 14 '22 11:09 vman26