Created
May 10, 2017 18:16
-
-
Save ismits/621a3cff4de582fe860a732e8e10fd41 to your computer and use it in GitHub Desktop.
Is null or empty check in Groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!someString?.trim()) { | |
logger.lifecycle("the string is null or empty.") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment