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

RS: rare sorting NPE in curriculum tree

    XMLWordPrintable

    Details

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

      Description

      Cannot reproduce. This is in a part of the code which is theoretically not used but there as fallback.

      2020-03-23 14:38:58.207 [ajp-nio2-8081-exec-6] ERROR OLATRuntimeException ^%^ I50223-J2814 ^%^ org.olat.core.logging.OLATRuntimeException
      
      https://xyz.frentix.com/auth/MyCoursesSite/0
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
      **RedScreen**
      <dispatchinfo>
      	<componentinfo>
      		<compname>segments</compname>
      		<compclass>org.olat.core.gui.components.segmentedview.SegmentViewComponent</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.components.segmentedview.SegmentViewEvent</class&gt;
      			<command>seg-view-selection</command>
      			<tostring>com:seg-view-selection,org.olat.core.gui.components.segmentedview.SegmentViewEvent@67ce60fb</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.repository.ui.list.OverviewRepositoryListController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo> 
      
      Caused by: java.lang.NullPointerException
      at org.olat.modules.curriculum.ui.component.CurriculumElementViewsRowComparator.compareClosed(CurriculumElementViewsRowComparator.java:152)
      at org.olat.modules.curriculum.ui.component.CurriculumElementViewsRowComparator.compareCurriculumElements(CurriculumElementViewsRowComparator.java:93)
      at org.olat.modules.curriculum.ui.component.CurriculumElementViewsRowComparator.compareNodes(CurriculumElementViewsRowComparator.java:65)
      at org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTreeNodeComparator.compareParentOf(FlexiTreeNodeComparator.java:49)
      at org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTreeNodeComparator.compare(FlexiTreeNodeComparator.java:40)
      at org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTreeNodeComparator.compare(FlexiTreeNodeComparator.java:33)
      at java.util.TimSort.binarySort(TimSort.java:296)
      at java.util.TimSort.sort(TimSort.java:239)
      at java.util.Arrays.sort(Arrays.java:1512)
      at java.util.ArrayList.sort(ArrayList.java:1462)
      at java.util.Collections.sort(Collections.java:175)
      at org.olat.modules.curriculum.ui.CurriculumElementListController.loadModel(CurriculumElementListController.java:312)
      at org.olat.modules.curriculum.ui.CurriculumElementListController.<init>(CurriculumElementListController.java:153)
      at org.olat.modules.curriculum.ui.CurriculumListController.doSelectCurriculum(CurriculumListController.java:212)
      at org.olat.modules.curriculum.ui.CurriculumListController.activate(CurriculumListController.java:169)
      at org.olat.repository.ui.list.OverviewRepositoryListController.doOpenCurriculum(OverviewRepositoryListController.java:378)
      at org.olat.repository.ui.list.OverviewRepositoryListController.event(OverviewRepositoryListController.java:268)
      at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:206)
      at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
      at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
      at org.olat.core.gui.components.segmentedview.SegmentViewComponent.doDispatchRequest(SegmentViewComponent.java:237)
      at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
      at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1218)
      at org.olat.core.gui.components.Window.dispatchRequest(Window.java:400)
      ... 39 more
      
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: