Skip to content

Instantly share code, notes, and snippets.

@ismits
Created May 10, 2017 18:16
Show Gist options
  • Save ismits/621a3cff4de582fe860a732e8e10fd41 to your computer and use it in GitHub Desktop.
Save ismits/621a3cff4de582fe860a732e8e10fd41 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