Buggy code:
public class PrototypeUtility { private static HashMap < String , Object > classTable = new HashMap < String , Object > ( ) ; private static HashMap < Object , String > nameTable = new HashMap < Object , String > ( ) ; private BufferedReader inputReader = new BufferedReader ( new InputStreamReader ( System . in ) ) ; private PrintWriter outputWriter = new PrintWriter ( System . out ) ; private Game testGame ; public static boolean allowDebug = false ; private String [ ] readCommand ( ) throws IOException { } public void runTest ( String testName ) { } private void executeCommand ( String [ ] command ) { if ( ( command != null ) && ( ( command . length ) >= 1 ) ) { String comm = command [ 0 ] ; if ( comm . equals ( "beginTest" ) ) { if ( ( command . length ) >= 2 ) { if ( PrototypeUtility . allowDebug ) System . out . println ( "begintest" ) ; try { <START_BUG> testGame = new Game ( 100 , "Tesztmap" , 2 ) ; <END_BUG> testGame . startGame ( ) ; } catch ( MyFileNotFoundException e ) { outputWriter . println ( e . getMessage ( ) ) ; if ( PrototypeUtility . allowDebug ) System . out . println ( e . getMessage ( ) ) ; } } } else if ( comm . equals ( "loadMap" ) ) { if ( ( command . length ) >= 2 ) { String mapName = command [ 1 ] ; Map m = new Map ( ) ; try { m . loadMap ( mapName , 0 ) ; testGame . setMap ( m ) ; } catch ( MyFileNotFoundException e ) { outputWriter . println ( "No<seq2seq4repair_space>such<seq2seq4repair_space>map<seq2seq4repair_space>exists!" ) ; if ( PrototypeUtility . allowDebug ) System . out . println ( e . getMessage ( ) ) ; } } } else if ( comm . equals ( "setGameLength" ) ) { if ( ( command . length ) >= 2 ) { int time = Integer . parseInt ( command [ 1 ] ) ; testGame . setTime ( time ) ; } } else if ( comm . equals ( "add" ) ) { if ( ( command . length ) >= 5 ) { String name = command [ 2 ] ; float x = Float . parseFloat ( command [ 3 ] ) ; float y = Float . parseFloat ( command [ 4 ] ) ; command [ 1 ] . toLowerCase ( ) ; if ( command [ 1 ] . equals ( "robot" ) ) { Map m = PrototypeUtility . getTestMap ( ) ; try { m . addPlayerRobot ( name , x , y ) ; } catch ( Exception e ) { outputWriter . println ( e . getMessage ( ) ) ; } } else if ( command [ 1 ] . equals ( "cleaner" ) ) { Map m = PrototypeUtility . getTestMap ( ) ; CleanerRobot c = new CleanerRobot ( new FloatPoint ( x , y ) , m ) ; c . setPosition ( x , y ) ; PrototypeUtility . addClass ( c , name ) ; m . getCleanerRobots ( ) . add ( c ) ; } else if ( command [ 1 ] . equals ( "olaj" ) ) { Map m = PrototypeUtility . getTestMap ( ) ; Olaj o = new Olaj ( 10 , new FloatPoint ( x , y ) ) ; PrototypeUtility . addClass ( o , name ) ; m . addMapItem ( o ) ; } else if ( command [ 1 ] . equals ( "ragacs" ) ) { Map m = PrototypeUtility . getTestMap ( ) ; Ragacs o = new Ragacs ( 3 , new FloatPoint ( x , y ) ) ; PrototypeUtility . addClass ( o , name ) ; m . addMapItem ( o ) ; } } } else if ( comm . equals ( "set" ) ) { if ( ( command . length ) >= 3 ) { String name = command [ 1 ] ; String attr = command [ 2 ] ; Object obj = PrototypeUtility . classTable . get ( name ) ; if ( ( ( attr . equals ( "speed" ) ) && ( obj instanceof Robot ) ) && ( ( command . length ) >= 5 ) ) { Robot r = ( ( Robot ) ( obj ) ) ; float x = Float . parseFloat ( command [ 3 ] ) ; float y = Float . parseFloat ( command [ 4 ] ) ; r . setSpeed ( new Vector ( x , y ) ) ; } else if ( ( attr . equals ( "modSpeed" ) ) && ( ( command . length ) >= 5 ) ) { PlayerRobot r = ( ( PlayerRobot ) ( obj ) ) ; float x = Float . parseFloat ( command [ 3 ] ) ; float y = Float . parseFloat ( command [ 4 ] ) ; r . setModSpeed ( new Vector ( x , y ) ) ; } else if ( ( ( attr . equals ( "dropOlaj" ) ) && ( obj instanceof PlayerRobot ) ) && ( ( command . length ) >= 4 ) ) { PlayerRobot r = ( ( PlayerRobot ) ( obj ) ) ; boolean drop = PrototypeUtility . yesOrNo ( command [ 3 ] ) ; if ( drop ) { r . setWantToDrop ( 2 ) ; } else { r . setWantToDrop ( 0 ) ; } }

Fix:
testGame = new Game ( 100 , null , 2 ) ;