1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-18 20:02:57 +00:00
This commit is contained in:
Jkorf
2022-01-18 13:42:12 +01:00
parent 008b15b055
commit 24b503ca8c
9 changed files with 19 additions and 3 deletions
+2
View File
@@ -3,6 +3,8 @@ title: FAQ
nav_order: 11
---
## Frequently asked questions
### I occasionally get a NullReferenceException, what's wrong?
You probably don't check the result status of a call and just assume the data is always there. `NullReferenceExecption`s will happen when you have code like this `var symbol = client.GetTickersAync().Result.Data.Symbol` because the `Data` property is null when the call fails. Instead check if the call is successful like this:
```csharp