diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c index 8b0dc7537b385d7812f314e9a0c92ace2b24cf7c..6c65e41faf7f605f3e16b000e4eb44626e3f1dcd 100644 --- a/lib/gs-plugin-loader.c +++ b/lib/gs-plugin-loader.c @@ -377,7 +377,8 @@ gs_plugin_loader_claim_error (GsPluginLoader *plugin_loader, } /* set the app and origin IDs if we managed to scrape them from the error above */ - event_app = g_object_ref (app); + if (app != NULL) + event_app = g_object_ref (app); event_origin = NULL; if (plugin != NULL && as_utils_data_id_valid (app_id)) {