mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-07 17:48:06 +02:00
daemon: Fix possible crasher in UpDevice self-test
This commit is contained in:
parent
01d8004d6c
commit
7e61b09409
1 changed files with 4 additions and 0 deletions
|
|
@ -178,6 +178,10 @@ update_warning_level (UpDevice *device)
|
|||
{
|
||||
UpDeviceLevel warning_level;
|
||||
|
||||
/* Not finished setting up the object? */
|
||||
if (device->priv->daemon == NULL)
|
||||
return;
|
||||
|
||||
warning_level = up_daemon_compute_warning_level (device->priv->daemon,
|
||||
device->priv->state,
|
||||
device->priv->type,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue