From: Lukasz Oleksak Date: Tue, 4 Jul 2023 10:54:20 +0000 (+0200) Subject: Protect against NULL pointer dereference X-Git-Tag: accepted/tizen/8.0/unified/20231005.094631^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F295281%2F1;p=platform%2Fupstream%2Fatk.git Protect against NULL pointer dereference Change-Id: I9c3bedb359bbeb152f56a3bd4f52f98fb2bd8d0e --- diff --git a/atk/atkutil.c b/atk/atkutil.c index f5efa59..af95944 100644 --- a/atk/atkutil.c +++ b/atk/atkutil.c @@ -473,7 +473,7 @@ atk_remove_key_event_listener (guint listener_id) { AtkUtilClass *klass = g_type_class_peek (ATK_TYPE_UTIL); - if (klass->remove_key_event_listener) + if (klass && klass->remove_key_event_listener) klass->remove_key_event_listener (listener_id); }