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

@ -166,6 +166,12 @@ public class Manager {
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 );
}