From 8349ae2bc400b46aa1de38c21d103eea52e7c7ae Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 Jan 2023 16:35:56 -0500 Subject: [PATCH] x11: Make a call NULL-safe Make it safe to call gdk_x11_app_launch_context_get_startup_notify_id with a NULL info. --- gdk/x11/gdkapplaunchcontext-x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c index 4284d182cd..7f004f7dca 100644 --- a/gdk/x11/gdkapplaunchcontext-x11.c +++ b/gdk/x11/gdkapplaunchcontext-x11.c @@ -283,6 +283,9 @@ gdk_x11_app_launch_context_get_startup_notify_id (GAppLaunchContext *context, GFileInfo *fileinfo; GdkAppLaunchContext *ctx; + if (!info) + return NULL; + ctx = GDK_APP_LAUNCH_CONTEXT (context); display = ctx->display; -- 2.30.2