Firebase Database giving me NullReferenceException errors

Hello everybody. I am using the Firebase Database to store some data for my game. I reached a point in my game development where I wanted to implement an XP data-saving system. So, I wrote some code that would update and load the player’s XP, but I’ve been getting some errors. I’ve been using this pattern for saving other things. I don’t know why it’s giving me an issue with this particular one.

@dawnstriker22
You should try using int.Parse(snapshot.Child("xp").Value.ToString());