Crash under gs_shell_show_uri() after flatpak app install
Moving this from a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1962985
Software crashes when clicking a "Website" button on a details page after a Flatpak application is installed. Note the url
in the backtrace is NULL, resulting in the error
being NULL as well, causing a NULL dereference in the code.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 gs_shell_show_uri (shell=<optimized out>, url=0x0) at ../src/gs-shell.c:2497
2497 ../src/gs-shell.c: No such file or directory.
[Current thread is 1 (Thread 0x7fa2f29c7a80 (LWP 2404))]
Thread 1 (Thread 0x7fa2f29c7a80 (LWP 2404)):
#0 gs_shell_show_uri (shell=<optimized out>, url=0x0) at ../src/gs-shell.c:2497
priv = <optimized out>
error = 0x0
#1 0x00007fa2f746583a in _g_closure_invoke_va (param_types=0x0, n_params=<optimized out>, args=0x7ffe48234f10, instance=0x561670363dc0, return_value=0x0, closure=0x56167037c900) at ../gobject/gclosure.c:873
code lines:
2491 g_autoptr(GError) error = NULL;
2492
2493 if (!gtk_show_uri_on_window (priv->main_window,
2494 url,
2495 GDK_CURRENT_TIME,
2496 &error)) {
2497 g_warning ("failed to show URI %s: %s",
2498 url, error->message);
2499 }