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

NPE in course preview if a checkbox is not already published

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.4.0
    • Fix Version/s: 9.4.1
    • Component/s: Course
    • Labels:
      None

      Description

      In course preview, if an author checks a checkbox of the checklist course element which is not already published => Red screen

      RedScreen on commolat 9.4.0
      2014-05-20 21:02:02,628 [ajp-apr-8002-exec-2] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N2-E23 ^%^ org.olat.core.logging 
      Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 ^%^ **RedScreen**
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_run</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo></extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.components.form.flexible.impl.FormEvent</class&gt;
      			<command>ONCHANGE</command>
      			<tostring>com:ONCHANGE,org.olat.core.gui.components.form.flexible.impl.FormEvent@a30cee6e</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.course.nodes.cl.ui.CheckListRunController</controllername>
      		<controllername>org.olat.course.run.preview.PreviewRunController</controllername>
      		<controllername>org.olat.course.run.preview.PreviewConfigController</controllername>
      		<controllername>org.olat.course.editor.EditorMainController</controllername>
      		<controllername>org.olat.course.run.RunMainController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      		<controllername>org.olat.core.commons.chiefcontrollers.controller.simple.SimpleBaseController</controllername>
      		<controllername>org.olat.core.commons.chiefcontrollers.BaseChiefController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: null
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:115)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46)
         at org.olat.core.gui.components.Window.dispatchRequest(Window.java:516)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:228)
         at org.olat.core.gui.components.Component.dispatchRequest(Component.java:192)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:241)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:197)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:268)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:211)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      >>> stack of 2.cause::java.lang.NullPointerException: null
      -> at org.olat.course.nodes.cl.manager.CheckboxManagerImpl.loadCheck(CheckboxManagerImpl.java:344)
         at org.olat.course.nodes.cl.manager.CheckboxManagerImpl.check(CheckboxManagerImpl.java:262)
         at org.olat.course.nodes.cl.ui.CheckListRunController.doCheck(CheckListRunController.java:287)
         at org.olat.course.nodes.cl.ui.CheckListRunController.formInnerEvent(CheckListRunController.java:253)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:359)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:195)
         at org.olat.core.gui.components.Component$1.run(Component.java:238)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.Component.fireEvent(Component.java:236)
         at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireFormEvent(FormWrapperContainer.java:135)
         at org.olat.core.gui.components.form.flexible.impl.Form.fireFormEvent(Form.java:792)
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 30 minutes
                30m