Fixing cleanup crashing on the new version 2 replay summary on cleanup if the game timed out during preparation. Also squelching the most common do-nothing error.

This commit is contained in:
Christian 'ketura' McCarty
2023-06-22 21:05:35 -05:00
parent 79d5da67ad
commit bbdae77663
2 changed files with 5 additions and 2 deletions

View File

@@ -194,7 +194,10 @@ public class HallRequestHandler extends LotroServerRequestHandler implements Uri
}
catch (Exception ex)
{
_log.error("Error response for " + request.uri(), ex);
//This is a worthless error that doesn't need to be spammed into the log
if(!ex.toString().contains("You don't have a deck registered yet")) {
_log.error("Error response for " + request.uri(), ex);
}
responseWriter.writeXmlResponse(marshalException(new HallException("Failed to create table. Please try again later.")));
}
finally {

View File

@@ -670,7 +670,7 @@ public class GameState {
}
public int getPlayerPosition(String playerId) {
return _playerPosition.get(playerId);
return _playerPosition.getOrDefault(playerId, 0);
}
public Map<Token, Integer> getTokens(PhysicalCard card) {