public static void ensureNonEmpty(String argumentDescription, String argument) {
        if (argument.isEmpty())
            throw new IllegalArgumentException(argumentDescription + " can not be empty");
    }
Throws NullPointerException if the argument is null
vespajlib/src/main/java/com/yahoo/protect/Validator.java