mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix NPE on resetTask action caused by choice tasks
This commit is contained in:
+3
-1
@@ -99,7 +99,9 @@ public class StudyRefreshTaskFileAction extends StudyActionWithShortcut {
|
||||
}
|
||||
final Task task = taskFile.getTask();
|
||||
task.setStatus(StudyStatus.Unchecked);
|
||||
task.setSelectedVariants(new ArrayList<>());
|
||||
if (task.isChoiceTask()) {
|
||||
task.setSelectedVariants(new ArrayList<>());
|
||||
}
|
||||
resetAnswerPlaceholders(taskFile, project);
|
||||
ProjectView.getInstance(project).refresh();
|
||||
StudyUtils.updateToolWindows(project);
|
||||
|
||||
Reference in New Issue
Block a user