You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use the API, and for some reason, I was getting a null pointer exception from anything that I was running. I eventually found the stack trace, and found that it was throwing the error inside of the GetPasswordOrTokenAuthHeader function. So, switched over to using the APIToken, and I could call methods just fine, no null pointers. So, I was curious, and begun looking at the code here, and found this method in core.cs:
Now, if the ApiToken is null, that first if statement will always fail. It will ALWAYS throw a null pointer, and so you can never get to the password authentication. I do not have time to pull down this code, fix this error, and push it back up, so if someone could change the above section of code to:
The string.IsNullOrWhitespace method, I believe, is what was intended here: you wanted to make sure that the APIToken wasn't just spaces either. This won't fail anytime someone tries to authenticate with username and password
Thanks!
The text was updated successfully, but these errors were encountered:
I was trying to use the API, and for some reason, I was getting a null pointer exception from anything that I was running. I eventually found the stack trace, and found that it was throwing the error inside of the GetPasswordOrTokenAuthHeader function. So, switched over to using the APIToken, and I could call methods just fine, no null pointers. So, I was curious, and begun looking at the code here, and found this method in core.cs:
Now, if the ApiToken is null, that first if statement will always fail. It will ALWAYS throw a null pointer, and so you can never get to the password authentication. I do not have time to pull down this code, fix this error, and push it back up, so if someone could change the above section of code to:
The string.IsNullOrWhitespace method, I believe, is what was intended here: you wanted to make sure that the APIToken wasn't just spaces either. This won't fail anytime someone tries to authenticate with username and password
Thanks!
The text was updated successfully, but these errors were encountered: