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
Object reference not set to an instance of an object. at Kount.Ris.Request.GetResponse(Boolean validate) in ...\kount-ris-dotnet-sdk-7.0.0\SDK\Kount\Ris\Request.cs:line 175
#11
Open
Foozinator opened this issue
Jan 9, 2018
· 2 comments
This exception we're seeing in production is difficult to reproduce, but it looks like some of our inputs into the SDK are binding a null value. The SDK doesn't check this and blindly attempts to convert it to a string. I suggest some simple boilerplate:
`// boilerplate value
string value = ( param.Key != null )
? param.Key.ToString()
: string.Empty;
post = post + HttpUtility.UrlEncode( param.Key.ToString() ) +
"=" + HttpUtility.UrlEncode( value ) + "&";
if ( param.Key.ToString().Equals( "PTOK" ) )
{
value = "payment token hidden";
}`
The text was updated successfully, but these errors were encountered:
This exception we're seeing in production is difficult to reproduce, but it looks like some of our inputs into the SDK are binding a null value. The SDK doesn't check this and blindly attempts to convert it to a string. I suggest some simple boilerplate:
`// boilerplate value
string value = ( param.Key != null )
? param.Key.ToString()
: string.Empty;
post = post + HttpUtility.UrlEncode( param.Key.ToString() ) +
"=" + HttpUtility.UrlEncode( value ) + "&";
if ( param.Key.ToString().Equals( "PTOK" ) )
{
value = "payment token hidden";
}`
The text was updated successfully, but these errors were encountered: