From abd18fecf0ad38de2486f7086a322f08604504d1 Mon Sep 17 00:00:00 2001 From: Zardshard <0azrune6@zard.anonaddy.com> Date: Mon, 25 Sep 2023 10:46:42 -0400 Subject: [PATCH] Deskbar: Fix compilation error This error only occurs when compiling a debug build. It was introduced with commit fb885767b6f Change-Id: I80b470df3872b5bdd8690f65b3d14388158be8ed Reviewed-on: https://review.haiku-os.org/c/haiku/+/6951 Reviewed-by: waddlesplash --- src/apps/deskbar/Switcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/deskbar/Switcher.cpp b/src/apps/deskbar/Switcher.cpp index 3014be989d..2164a1cc91 100644 --- a/src/apps/deskbar/Switcher.cpp +++ b/src/apps/deskbar/Switcher.cpp @@ -2029,7 +2029,7 @@ TIconView::Update(int32 previous, int32 current, // animate expanding currently centered icon TTeamGroup* currentGroup = (TTeamGroup*)groupList->ItemAt(current); - ASSERT(group); + ASSERT(currentGroup != NULL); AnimateIcon(currentGroup->SmallIcon(), currentGroup->LargeIcon()); }