Commit 7144a042 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

fixed Double/Number mixup bug

parent 410b39c8
......@@ -133,7 +133,7 @@ public class JSONResponseParser {
* @return
*/
public static Double extractDouble(Object doubleValue) throws ParseException {
if (doubleValue instanceof Double) {
if (doubleValue instanceof Number) {
return ((Number) doubleValue).doubleValue();
} else if (doubleValue instanceof String) {
// we are dealing with a string - parse it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment