diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs
index a24419c..105a8f9 100644
--- a/Assets/Scripts/GameManager.cs
+++ b/Assets/Scripts/GameManager.cs
@@ -494,12 +494,17 @@ private void OnCurrentQuestionChanged(object sender, ValueChangedEventArgs onlin
///
public void OnClickProposition(int propositionNumber)
{
+ /*
Debug.Log($"Room has {myRoom.questions.Count} questions. the current Question is Q({myRoom.currentQuestionId}).");
Debug.Log($"Q({myRoom.currentQuestionId}) has {myRoom.questions[myRoom.currentQuestionId].propositions.Count} propositions.");
Debug.Log($"Player click on proposition {propositionNumber}.");
Debug.Log($"it has {myRoom.questions[myRoom.currentQuestionId].propositions[propositionNumber].voters.Count} voters.");
+ */
List voters = myRoom.questions[myRoom.currentQuestionId].propositions[propositionNumber].voters;
+ if(voters == null)
+ voters = new List();
+
voters.Add(currentPlayer.id);
myOnlineRoom.Child("questions").Child(myRoom.currentQuestionId.ToString()).Child("propositions").Child(propositionNumber.ToString()).Child("voters").SetValueAsync(voters);