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

OO-4344: double check the parent in curriculum element comparator

parent 1cd08b28
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ public class CurriculumElementTreeRowComparator extends FlexiTreeNodeComparator
} else {
c = Long.compare(pos1.longValue(), pos2.longValue());
}
} else if(parentKey1 != null && parentKey2 != null) {
} else if(parentKey1 != null && parentKey2 != null && c1.getParent() != null && c2.getParent() != null) {
// This case is usually not possible
CurriculumElementRow p1 = c1.getParent();
CurriculumElementRow p2 = c2.getParent();
......
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