Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-36842

can't export assessment loaded from respondus

    XMLWordPrintable

    Details

    • Previous Issue Keys:
      SAM-956

      Description

      A faculty member couldn't export an assessment that was originally loaded from Respondus. I'm not sure that's actualy relevant. The problem seems to be that code tries to access the partial credit value without checking to see that there is one. The result is a null pointer.

      2010-07-23 14:21:56,427 ERROR http-443-Processor81 org.sakaiproject.tool.assessment.qti.asi.Section -
      java.lang.NullPointerException
      at org.sakaiproject.tool.assessment.qti.helper.item.ItemHelper12Impl.setFeedback(ItemHelper12Impl.java:1627)
      at org.sakaiproject.tool.assessment.qti.asi.Item.setFeedback(Item.java:401)
      at org.sakaiproject.tool.assessment.qti.asi.Item.update(Item.java:231)
      at org.sakaiproject.tool.assessment.qti.asi.Section.addItems(Section.java:327)
      at org.sakaiproject.tool.assessment.qti.asi.Section.update(Section.java:154)
      at org.sakaiproject.tool.assessment.qti.helper.AuthoringHelper.getAssessment(AuthoringHelper.java:262)

      My fix is

      Index: src/java/org/sakaiproject/tool/assessment/qti/helper/item/ItemHelper12Impl.java
      ===================================================================
      — src/java/org/sakaiproject/tool/assessment/qti/helper/item/ItemHelper12Impl.java (revision 2389)
      +++ src/java/org/sakaiproject/tool/assessment/qti/helper/item/ItemHelper12Impl.java (working copy)
      @@ -1620,7 +1620,8 @@
      if(answer.getIsCorrect().booleanValue())

      { answer.setPartialCredit(100f); }
      • addAnswerFeedbackPartialCredit(itemXml, value,
        + if (answer.getItem().getPartialCreditFlag())
        + addAnswerFeedbackPartialCredit(itemXml, value,
        isInsert, xpathIndex, "" + label, Float.valueOf(((answer.getItem().getScore().floatValue())*answer.getPartialCredit().floatValue())/100f)); //--mustansar
        }
        else

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jthapa Jasmine Thapa (Inactive)
                  Reporter:
                  hedrick Charles Hedrick
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration