Browse Source

Bug fix in StateRewardsSimple.

Wrong exception for out-of-bounds, so did not act "sparse" as intended.
accumulation-v4.7
Dave Parker 5 years ago
parent
commit
a3452112d7
  1. 2
      prism/src/explicit/rewards/StateRewardsSimple.java

2
prism/src/explicit/rewards/StateRewardsSimple.java

@ -91,7 +91,7 @@ public class StateRewardsSimple extends StateRewards
{
try {
return stateRewards.get(s);
} catch (ArrayIndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
return 0.0;
}
}

Loading…
Cancel
Save