diff options
-rw-r--r-- | src/gpm-statistics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c index 21a0a52..b71a6f8 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -1131,6 +1131,10 @@ static void gpm_stats_button_update_ui (void) { UpDevice *device; + + if (current_device == NULL) + return; + device = up_device_new (); up_device_set_object_path_sync (device, current_device, NULL, NULL); gpm_stats_update_info_data (device); |