mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check size (IDEA-CR-16735)
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ public class CourseDirectoryNode extends StudyDirectoryNode {
|
||||
public PsiDirectoryNode createChildDirectoryNode(StudyItem item, PsiDirectory directory) {
|
||||
final List<Lesson> lessons = myCourse.getLessons();
|
||||
final Lesson lesson = (Lesson)item;
|
||||
if (lessons.size() == 1) {
|
||||
if (directory.getChildren().length > 0 && lessons.size() == 1) {
|
||||
final List<Task> tasks = lesson.getTaskList();
|
||||
if (tasks.size() == 1) {
|
||||
PsiDirectory taskDirectory = (PsiDirectory)directory.getChildren()[0];
|
||||
|
||||
Reference in New Issue
Block a user