Primitive variable double
cannot be null, and cannot be compared with a Java null. If you want to assign null value or no value for this double variable then you have to give value like 0.0.
0
solved How to insert Null Values of type double in ANDROID [closed]