OverlayImage: Check fText actually exists before updating colors.

Should fix #20208.
(cherry picked from commit 472699848d96d84927e7992df1f6e575acd19414)

Change-Id: Ie057ecb43cccca1b348c083b0c0d963ef08a6ff5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11370
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2026-07-27 17:21:49 +00:00
committed by waddlesplash
parent 63b8fe3ae8
commit f0a83b8afe
+1 -1
View File
@@ -126,7 +126,7 @@ OverlayView::MessageReceived(BMessage* msg)
case B_COLORS_UPDATED:
{
rgb_color color;
if (msg->FindColor(ui_color_name(B_PANEL_TEXT_COLOR), &color) == B_OK)
if (fText != NULL && msg->FindColor(ui_color_name(B_PANEL_TEXT_COLOR), &color) == B_OK)
fText->SetFontAndColor(be_plain_font, B_FONT_ALL, &color);
break;
}