Fixed a problem where no servers caused a NullPointerException

master
penguinc 2005-07-12 02:23:04 +00:00
parent 040c150298
commit 8dc6e932d2
1 changed files with 6 additions and 0 deletions

View File

@ -165,6 +165,12 @@ public class Manager {
for ( int i = 0; j < args.length; j++, i++ ) {
commandArgs[i] = args[j];
}
/* bail out early if there are no servers found */
if ( serverlist.size() == 0 ) {
usage ();
System.exit ( 1 );
}
/* start the textual report */
generateTextReport ( command, commandArgs );