Skip to content
Snippets Groups Projects
Commit 3b3a491a authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Bug informed by pdss solved. Pb on double parsing in simulation

parent 07ceba31
No related branches found
No related tags found
No related merge requests found
......@@ -395,7 +395,12 @@ public class AvatarSimulationBlock {
int valMin = evaluateIntExpression(random.getMinValue(), attributeValues);
int valMax = evaluateIntExpression(random.getMaxValue(), attributeValues);
double extra1 = Double.parseDouble(random.getExtraAttribute1());
double extra1;
try {
extra1 = Double.parseDouble(random.getExtraAttribute1());
} catch (Exception e) {
extra1 = 0.0;
}
if ((forcedRandom > -1) && (forcedRandom >= valMin) && (forcedRandom <= valMax)) {
// Use provided value as random value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment