[gnome-software] snap: Don't attempt to refine snaps without a valid name



commit 86278d301467e8ace5fcef9e1cdfb9ff597a3d54
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Oct 26 14:12:15 2017 +1300

    snap: Don't attempt to refine snaps without a valid name

 plugins/snap/gs-plugin-snap.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index a9272c6..69c61e2 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -658,6 +658,8 @@ gs_plugin_refine_app (GsPlugin *plugin,
        id = gs_app_get_id (app);
        if (id == NULL)
                id = gs_app_get_source_default (app);
+       if (id == NULL)
+               return TRUE;
 
        /* get information from installed snaps */
        local_snap = snapd_client_list_one_sync (client, id, cancellable, NULL);


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