Check for NULL groups in gtk_action_muxer_get_group ()
authorLuca Bacci <luca.bacci982@gmail.com>
Wed, 17 May 2023 12:00:56 +0000 (14:00 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 12:00:43 +0000 (08:00 -0400)
commita55b84f52446396af812349be2c34ed5ed57a3a2
treeba051a8e404f0b5ec827918f3f91c7de83fd9ff6
parentba69a30d270892646778fd075d94dbcb5fa6a845
Check for NULL groups in gtk_action_muxer_get_group ()

The groups hash table is initialized lazily when inserting
the first GActionGroup (gtk_action_muxer_insert ()). Do as
all surrounding code does and check for NULL before using
groups.

This avoids triggering a warning
gtk/gtkactionmuxer.c