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:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user