-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetActivePositionsAsync returning NullReferenceException #12
Comments
Hi, can you put LogVerbosity on Debug and share the data that was returned? There is an error parsing the returned data. |
I found out that in BaseConverters.ReadJson() reader.Value was null and this line doesn't check for null before calling .ToString() I solved it by simply adding a null check like this: I saw you solved this on CryptoExchange.net 4 hours ago. |
Ah okay. Yes I noticed there was no error/null checking on that bit so I added that after I saw where your error was coming from, but didn't know for sure if it would solve your problem. Glad it's fixed! |
I traced down the error and it's coming from BaseConverter.ReadJson in CryptoExchange project.
Here's the stack trace:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=CryptoExchange.Net
StackTrace:
The text was updated successfully, but these errors were encountered: