Skip to content

Commit

Permalink
Merge pull request #942 from EyeSeeTea/code-v1.0
Browse files Browse the repository at this point in the history
protection from badly configured server regarding CS added
  • Loading branch information
ifoche committed Apr 13, 2016
2 parents 44eb07c + c134452 commit b039bd4
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -78,6 +78,11 @@ public static void deleteRecord(Question question){

private static List<Float> getRecursiveScore(CompositeScore cScore, List<Float> result) {

//Protect from wrong server data
if (compositeScoreMap.get(cScore)==null) {
return Arrays.asList(new Float(0f),new Float(0f));
}

//Sum its own records
result=compositeScoreMap.get(cScore).calculateNumDenTotal(result);

Expand Down

0 comments on commit b039bd4

Please sign in to comment.