excilys/gatling — pull request #478 by skuenzli (2012-04-15 16:23:30+00:00)
Title: Check user input for simulation selection to avoid IndexOutOfBoundsException.

This change updates the console's simulation input handler to handle out-of-bounds input without an exception. Currently, if a user enters a number that does not map to an actual simulation, say -1 or 2 when there are only two simulations, then the selectSimulationClass will throw an IndexOutOfBoundsException because it attempts to index directly into the classes array.