Skip to content

Instantly share code, notes, and snippets.

@nickname55
Forked from ismits/IsNullOrEmpty.Groovy
Created April 17, 2022 18:28
Show Gist options
  • Save nickname55/28a5e8447aec8fa5994e5fd2daa80a70 to your computer and use it in GitHub Desktop.
Save nickname55/28a5e8447aec8fa5994e5fd2daa80a70 to your computer and use it in GitHub Desktop.
Is null or empty check in Groovy
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