bugthesystem / FireSharp

An asynchronous cross-platform .Net library for Firebase
The Unlicense
697 stars 147 forks source link

NullReferenceException with Set/Push Response #81

Closed PixellUp closed 8 years ago

PixellUp commented 8 years ago

Greeting everyone, When I'm trying to Set or Push to Firebase, I'm getting following error System.NullReferenceException was unhandled by user code

 public class Todo
{
  public string name;
  public int priority;
}

var todo = new Todo
{
   name = "Execute SET",
   priority = 2
};
SetResponse response = await _client.SetAsync("todos/set", todo);
Todo result = response.ResultAs<Todo>(); //The response will contain the data written

I'm getting the error in SetResponse response = await _client.SetAsync("todos/set", todo); line.

Just to mention, I can read from firebase, but I cannot update/set in firebase.

PixellUp commented 8 years ago

Anyone with a solution for this problem ? @ziyasal