public static < E > void notNullOrEmpty ( final E [ ] argument , final String name ) { if ( argument == null ) { s_logger . error ( "Argument {} was null" , name ) ; throw new QuandlRuntimeException ( "Value " + name + " was null" ) ; } else if ( argument . length == 0 ) { s_logger . error ( "Argument {} was empty array" , name ) ; throw new QuandlRuntimeException ( "Value " + name + " was empty array" ) ; } }
Throws an exception if the array argument is not null or empty .