fix: detail name empty with spaces still valid #1262
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1260
Changes:
isNullOrEmpty() only check if the length of string is zero or string null, while isNullOrBlank() check if the string is null or contains all empty spaces as well.
Screenshots for the change:
![53430018-436654580211885-594036853695315968-n](https://camo.githubusercontent.com/000637f3d5359e8391e5d85eb19d8dc8dd092765bb0978dc592ee38d00979e55/68747470733a2f2f692e6962622e636f2f354d704c424a422f35333433303031382d3433363635343538303231313838352d3539343033363835333639353331353936382d6e2e706e67)