From 2e059a23f0201c09caa4a23617d9488c4438e7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Wed, 1 Nov 2023 14:26:46 +0100 Subject: [PATCH] Added missing check whether is current_terminal not null --- src/MainWindow.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 9efc93dbc7..fb1f5be808 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -1357,7 +1357,7 @@ namespace Terminal { string[] opened_tabs = {}; int focused_tab = 0; - if (save_zooms) { + if (save_zooms && current_terminal != null) { Application.saved_state.set_double ("zoom", current_terminal.font_scale); }