User475983607 posted
Hi
please i have an api for creating order and i have add my site to host working with plesk 17.8.11
when i call api from web i got error
{
"errors": {
"server_error": [
"Object reference not set to an instance of an object."
]
}
}
and when i call it from android i got this error
java.net.protocolexception unexpected status line {"d":null}http/1.1 200 ok

so please how can i resolve it ?
The null exception is caused by accessing an object that has not been initialized. This is the most common bug in programming.
I recommend running your code through the debugger. Unfortunately you're showing us Java code and this is a .NET forum. Share your .NET code if you want forum members to debug your code. I recommend debugging on your own...