Hello I am using Gson parser, in my class there is no double variable used though I am getting Invalid Double Exception, where the value comes as emtpty string but there is no double variable in my class structure.
Can anyone suggest what to do?
Hello I am using Gson parser, in my class there is no double variable used though I am getting Invalid Double Exception, where the value comes as emtpty string but there is no double variable in my class structure.
Can anyone suggest what to do?
Seems like you are trying to handle response using Gson
and your pojo class model has datatype Double
but response returns value as "" which is String
as default value.
Please make your default value as 0 for the same field and your problem will get resolved. If there is a backend guy working for APIs ask him to set default value as 0 for such fields.