From 6ea515a00a3257d701f1dc2bc59e4e3506662ce9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 6 Dec 2024 18:01:55 +0100 Subject: [PATCH] added checking for NULL pointer for drawing wrapped info text --- src/screens.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens.c b/src/screens.c index 651b6830..478d5738 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4440,7 +4440,7 @@ static void DrawInfoScreen_GenericScreen(int screen_nr, int num_screens, int use SetWrappedText_GenericScreen(tmi, screen_nr, use_global_screens); - if (wrapped_text->total_height > wrapped_text->max_height) + if (wrapped_text != NULL && wrapped_text->total_height > wrapped_text->max_height) { // re-wrap text with text width reduced by scroll bar width tmi->width -= SC_SCROLL_VERTICAL_XSIZE; -- 2.34.1