private void checkBlankAndThrowError ( String str , String msg ) { if ( StringUtils . isBlank ( str ) ) { log . error ( msg ) ; throw new IllegalArgumentException ( msg ) ; } }
It checks for null whitespace and length