fixed loading of Bravo fixes caused by Integer number triggering a ClassCastException as they are not Double but Integer

Change-Id: Ifa37ef4a509d9aa7edeeac328a2e538e4a5a079f
This commit is contained in:
Axel Uhl committed 2017-08-01 09:40:34 +02:00
1 parent 6d95ad2353
commit 47314fcf38
1 file changed
+2 -2
@@ -48,10 +48,10 @@ public class DoubleVectorFixMongoHandlerImpl implements FixMongoHandler<DoubleVe
private double[] fromDBObject(DBObject dbObject) {
@SuppressWarnings("unchecked")
List<Double> dbValues = (List<Double>) dbObject;
List<Number> dbValues = (List<Number>) dbObject;
double[] result = new double[dbValues.size()];
for(int i = 0 ; i < dbValues.size() ; i++) {
result[i] = dbValues.get(i);
result[i] = dbValues.get(i).doubleValue();
}
return result;
}