[fix:] spplus crashed when not selecting any file

This commit is contained in:
2026-02-28 18:26:02 +01:00
parent b772e29084
commit 77ca5aa1ff

View File

@@ -90,6 +90,7 @@ public partial class MainWindow : Window
});
if (file == null) return;
if (file.Count == 0) return;
var imported_students = import.ImportStudentsFromFile(file[0].Path.LocalPath.ToString());
foreach (var s in imported_students)