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 af24fbb..d6bcaf1 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -1128,6 +1128,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); |