Then a NullPointerException is thrown cause there is no check in the constructor if there is any most recent game.
Stacktrace:
Exception in thread "main" java.lang.NullPointerException
at steamcondenser.steam.community.l4d.AbstractL4DStats.<init>(AbstractL4DStats.java:57)
at steamcondenser.steam.community.l4d.L4D2Stats.<init>(L4D2Stats.java:31)
at steamcondenser.steam.community.GameStats.createGameStats(GameStats.java:65)
at steamcondenser.steam.community.SteamId.getGameStats(SteamId.java:398)
at steam.SteamTest.getGames(SteamTest.java:36)
at steam.SteamTest.main(SteamTest.java:55)
When the parsed XML document contains:
Then a NullPointerException is thrown cause there is no check in the constructor if there is any most recent game.