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

OO-1458: the root node can be null, add check

parent ff5c7fcc
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,8 @@ public class MergedCourseContainer extends MergeSource { ...@@ -123,6 +123,8 @@ public class MergedCourseContainer extends MergeSource {
} }
private void addFolderBuildingBlocks(PersistingCourseImpl course, MergeSource nodesContainer, TreeNode courseNode) { private void addFolderBuildingBlocks(PersistingCourseImpl course, MergeSource nodesContainer, TreeNode courseNode) {
if(courseNode == null) return;
for (int i = 0; i < courseNode.getChildCount(); i++) { for (int i = 0; i < courseNode.getChildCount(); i++) {
TreeNode child = (TreeNode)courseNode.getChildAt(i); TreeNode child = (TreeNode)courseNode.getChildAt(i);
......
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