diff --git a/src/main/java/seedu/address/ui/MainWindow.java b/src/main/java/seedu/address/ui/MainWindow.java index 844b96aa074..4a7c23ec476 100644 --- a/src/main/java/seedu/address/ui/MainWindow.java +++ b/src/main/java/seedu/address/ui/MainWindow.java @@ -189,6 +189,7 @@ public void toggleStudentList() { @FXML public void handleView() { if (!viewWindow.isShowing()) { + viewWindow = new ViewWindow(logic); viewWindow.show(); } else { viewWindow.focus();