Do not log theme if pane is NULL.

This commit is contained in:
nicm
2026-01-06 09:11:15 +00:00
parent 6a7cd79a63
commit ccd4dd7ff2

View File

@@ -3397,6 +3397,8 @@ input_report_current_theme(struct input_ctx *ictx)
{ {
struct window_pane *wp = ictx->wp; struct window_pane *wp = ictx->wp;
if (wp == NULL)
return;
switch (window_pane_get_theme(wp)) { switch (window_pane_get_theme(wp)) {
case THEME_DARK: case THEME_DARK:
log_debug("%s: %%%u dark theme", __func__, wp->id); log_debug("%s: %%%u dark theme", __func__, wp->id);