Skip to content

Guard.IsNotWhiteSpace gives exception on null value #441

Open
@vman26

Description

@vman26

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
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions