Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2482

NPE if src of image is null in QTI 2.1

    Details

      Description

      An author has inserted an image without src (without image). I don't know how it is possible.

      https://openolat.xyz.ch/auth/RepositoryEntry/58195968/Editor/0 ^%^ Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
      >>>stack of 1.cause::java.lang.NullPointerException: null
      -> at org.olat.ims.qti21.ui.components.AssessmentRenderFunctions.convertLink(AssessmentRenderFunctions.java:619)
         at org.olat.ims.qti21.ui.components.AssessmentRenderFunctions.getHtmlAttributeValue(AssessmentRenderFunctions.java:584)
         at org.olat.ims.qti21.ui.components.AssessmentObjectComponentRenderer.renderHtmlTag(AssessmentObjectComponentRenderer.java:651)
         at org.olat.ims.qti21.ui.components.AssessmentObjectComponentRenderer.renderInline(AssessmentObjectComponentRenderer.java:537)
         at org.olat.ims.qti21.ui.components.AssessmentObjectComponentRenderer.lambda$renderBlock$6(AssessmentObjectComponentRenderer.java:370)
         at java.util.ArrayList.forEach(ArrayList.java:1249)
         at org.olat.ims.qti21.ui.components.AssessmentObjectComponentRenderer.renderBlock(AssessmentObjectComponentRenderer.java:369)
         at org.olat.ims.qti21.ui.components.AssessmentItemComponentRenderer.lambda$renderTestItemBody$0(AssessmentItemComponentRenderer.java:170)
         at java.util.ArrayList.forEach(ArrayList.java:1249)
         at org.olat.ims.qti21.ui.components.AssessmentItemComponentRenderer.renderTestItemBody(AssessmentItemComponentRenderer.java:169)
         at org.olat.ims.qti21.ui.components.AssessmentItemComponentRenderer.renderItemEvent(AssessmentItemComponentRenderer.java:143)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m