[gnome-software/gnome-3-38] flatpak: Fix assertation in new libflatpak version



commit c0a287cd7620274010fda1e9b998bb41ec610bb5
Author: Richard Hughes <richard hughsie com>
Date:   Mon Feb 8 09:56:55 2021 +0000

    flatpak: Fix assertation in new libflatpak version

 plugins/flatpak/gs-flatpak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 0d22e04c7..cf86a7f45 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2400,7 +2400,7 @@ gs_flatpak_refine_appstream (GsFlatpak *self,
        g_autoptr(GError) error_local = NULL;
        g_autoptr(XbNode) component = NULL;
 
-       if (origin == NULL || source == NULL)
+       if (origin == NULL || source == NULL || gs_flatpak_app_get_ref_name (app) == NULL)
                return TRUE;
 
        /* find using source and origin */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]