Skip to content
Snippets Groups Projects
Commit e8bcdaec authored by srosse's avatar srosse
Browse files

OO-4592: check parents in rare branch of curriculum comparator

parent 3648d625
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,12 @@ public class CurriculumElementViewsRowComparator extends FlexiTreeNodeComparator
// This case is usually not possible
CurriculumElementWithViewsRow p1 = c1.getParent();
CurriculumElementWithViewsRow p2 = c2.getParent();
c = compareCurriculumElements(p1, p2);
if(p1 == null || p2 == null) {
// reversed because no parent at the top, higher in the hierarchy
c = -compareNullObjects(p1, p2);
} else {
c = compareCurriculumElements(p1, p2);
}
} else {
// This case is usually not possible
c = compareDisplayName(c1, c2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment