[gnome-software] trivial: Do not log a warning on startup



commit 2a27840e6f046cd4bfa4613924386511a8ff8724
Author: Richard Hughes <richard hughsie com>
Date:   Wed May 11 11:28:34 2016 +0100

    trivial: Do not log a warning on startup

 src/plugins/gs-plugin-packagekit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index 4c8a767..7e2e9c8 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -102,7 +102,7 @@ gs_plugin_packagekit_progress_cb (PkProgress *progress,
 
        } else if (type == PK_PROGRESS_TYPE_PERCENTAGE) {
                gint percentage = pk_progress_get_percentage (progress);
-               if (percentage >= 0 && percentage <= 100)
+               if (data->app != NULL && percentage >= 0 && percentage <= 100)
                        gs_app_set_progress (data->app, percentage);
        }
 }


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