if (StringUtil.isEmpty((String) argumentVal)) { // Use the StringUtil class for checking String objects
if (logger.isLoggable(Level.SEVERE)) {
logger.severe(classname + " " + methodname + " Argument " + argumentName
+ ", passed was null");
}
InvalidInputException invalidinputexception = new InvalidInputException(null,
"Input parameter " + argumentName + " passed was null", classname, methodname);
throw invalidinputexception;
}
} else if (null == argumentVal) {
if (logger.isLoggable(Level.SEVERE)) {
logger.severe(classname + " " + methodname + " Argument " + argumentName
+ ", passed was null");
}
InvalidInputException invalidinputexception = new InvalidInputException(null,
"Input parameter " + argumentName + " passed was null", classname, methodname);
throw invalidinputexception;
}
}
}