go figure (suspicious NPE on prod)

This commit is contained in:
Thibault Duplessis 2015-10-06 20:00:36 +02:00
parent e2c70ab563
commit a1048dc957

View file

@ -114,7 +114,7 @@ object Round extends LilaController with TheftPrevention {
def whatsNext(fullId: String) = Open { implicit ctx =>
OptionFuResult(GameRepo pov fullId) { currentPov =>
if (currentPov.isMyTurn) fuccess {
Ok(Json.obj("next" -> null))
Ok(Json.obj("nope" -> true))
}
else otherPovs(currentPov.game) map getNext(currentPov.game) map { next =>
Ok(Json.obj("next" -> next.map(_.fullId)))