diff --git a/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java b/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java index 07435da99..277d9506e 100644 --- a/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java +++ b/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java @@ -474,7 +474,10 @@ public Map validateQumlAssessmentV2(Map question String assessmentType= (String)questionSetDetailsMap.get(Constants.ASSESSMENT_TYPE); String negativeWeightAgeEnabled; int negativeMarksValue = 0; - int minimumPassPercentage = (int) questionSetDetailsMap.get(Constants.MINIMUM_PASS_PERCENTAGE); + int minimumPassPercentage = 0; + if (questionSetDetailsMap.get(Constants.MINIMUM_PASS_PERCENTAGE) != null) { + minimumPassPercentage = (int) questionSetDetailsMap.get(Constants.MINIMUM_PASS_PERCENTAGE); + } Integer totalMarks= (Integer) questionSetDetailsMap.get(Constants.TOTAL_MARKS); Map resultMap = new HashMap<>(); Map answers = getQumlAnswers(originalQuestionList,questionMap);