Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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